From a3b45467a3b62df85f6e50376144765963be2dca Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Thu, 31 Oct 2024 08:39:44 -0700 Subject: [PATCH] docs: deploymentconfig deprecation (#89) --- README.md | 13 +++++++------ certextractor/README.md | 15 ++++++++------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index b1e8207..bead5a2 100644 --- a/README.md +++ b/README.md @@ -55,8 +55,8 @@ This is an utility for extracting the connection certificate from an Oracle Data ```yml -- apiVersion: v1 - kind: DeploymentConfig +- apiVersion: apps/v1 + kind: Deployment metadata: labels: app: application-name @@ -64,14 +64,15 @@ This is an utility for extracting the connection certificate from an Oracle Data spec: replicas: 1 selector: - deploymentconfig: application-component + matchLabels: + deployment: application-component strategy: - type: Rolling + type: RollingUpdate template: metadata: labels: app: application-name - deploymentconfig: application-component + deployment: application-component spec: volumes: - name: application-name-certs @@ -96,4 +97,4 @@ This is an utility for extracting the connection certificate from an Oracle Data volumeMounts: - mountPath: /cert name: application-name-certs -``` \ No newline at end of file +``` diff --git a/certextractor/README.md b/certextractor/README.md index bb6c851..74fd84f 100644 --- a/certextractor/README.md +++ b/certextractor/README.md @@ -6,7 +6,7 @@ This repository contains a utility for extracting the connection certificate fro To use the Oracle Database Client Connection Certificate Extractor as part of your openshift deployment, follow these steps: -1. On your DeploymentConfig, add the initContainers (same as an actual container) +1. On your Deployment, add the initContainers (same as an actual container) 2a. Set the image as `ghcr.io/bcgov/nr-forest-client-commons/certextractor:X.Y.Z` 2b. Create a new ImageStream and reference `ghcr.io/bcgov/nr-forest-client-commons/certextractor:X.Y.Z` @@ -29,8 +29,8 @@ This project is licensed under the [Apache 2.0](../LICENSE). Keep in mind that this is just an example, adapt it to your requirements. ```yml -- apiVersion: v1 - kind: DeploymentConfig +- apiVersion: apps/v1 + kind: Deployment metadata: labels: app: application-name @@ -38,14 +38,15 @@ Keep in mind that this is just an example, adapt it to your requirements. spec: replicas: 1 selector: - deploymentconfig: application-component + matchLabels: + deployment: application-component strategy: - type: Rolling + type: RollingUpdate template: metadata: labels: app: application-name - deploymentconfig: application-component + deployment: application-component spec: volumes: - name: application-name-certs @@ -70,4 +71,4 @@ Keep in mind that this is just an example, adapt it to your requirements. volumeMounts: - mountPath: /cert name: application-name-certs -``` \ No newline at end of file +```