From d4c326bf9c4ff5919dbdbee4aaef99104ae2d288 Mon Sep 17 00:00:00 2001 From: Andrew Schwartz Date: Tue, 25 Jul 2023 22:04:16 +0900 Subject: [PATCH] chore: cnp -> cnpg --- .github/workflows/cicd.yaml | 36 ++++++++++++------------- Makefile | 10 +++---- README.md | 6 ++--- chart/edb-cnp-gke-autopilot/Chart.yaml | 2 +- chart/edb-cnp-gke-autopilot/values.yaml | 4 +-- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 2b3b3d5..b008af0 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -55,10 +55,10 @@ jobs: push: true provenance: false tags: | - gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/deployer:latest - gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/deployer:${{ steps.semver_parser.outputs.fullversion }} - gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/deployer:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }} - gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/deployer:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} + gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/deployer:latest + gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/deployer:${{ steps.semver_parser.outputs.fullversion }} + gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/deployer:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }} + gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/deployer:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} build-args: | TAG=${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} - name: Pull CNPG image @@ -68,14 +68,14 @@ jobs: - name: Tag CNPG image if: ${{ github.event_name != 'workflow_dispatch' }} run: | - docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/cloudnative-pg:latest - docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/cloudnative-pg:${{ steps.semver_parser.outputs.fullversion }} - docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/cloudnative-pg:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }} - docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/cloudnative-pg:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} + docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/cloudnative-pg:latest + docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/cloudnative-pg:${{ steps.semver_parser.outputs.fullversion }} + docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/cloudnative-pg:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }} + docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/cloudnative-pg:${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}.${{ steps.semver_parser.outputs.patch }} - name: Push CNPG image tags if: ${{ github.event_name != 'workflow_dispatch' }} run: | - docker image push --all-tags gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/cloudnative-pg + docker image push --all-tags gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/cloudnative-pg ##### # Steps to run on dispatch @@ -99,10 +99,10 @@ jobs: push: true provenance: false tags: | - gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/deployer:latest - gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/deployer:${{ steps.semver_parser_dispatch.outputs.fullversion }} - gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/deployer:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }} - gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/deployer:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} + gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/deployer:latest + gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/deployer:${{ steps.semver_parser_dispatch.outputs.fullversion }} + gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/deployer:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }} + gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/deployer:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} build-args: | TAG=${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} - name: Pull CNPG image @@ -112,12 +112,12 @@ jobs: - name: Tag CNPG image if: ${{ github.event_name == 'workflow_dispatch' }} run: | - docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/cloudnative-pg:latest - docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.fullversion }} - docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }} - docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} + docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/cloudnative-pg:latest + docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.fullversion }} + docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }} + docker tag ghcr.io/cloudnative-pg/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/cloudnative-pg:${{ steps.semver_parser_dispatch.outputs.major }}.${{ steps.semver_parser_dispatch.outputs.minor }}.${{ steps.semver_parser_dispatch.outputs.patch }} - name: Push CNPG image tags if: ${{ github.event_name == 'workflow_dispatch' }} run: | - docker image push --all-tags gcr.io/public-edb-ppas/edb-cnp-gke-autopilot-dev/cloudnative-pg + docker image push --all-tags gcr.io/public-edb-ppas/edb-cnpg-gke-autopilot-dev/cloudnative-pg ##### diff --git a/Makefile b/Makefile index 3df16c4..4d20e78 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -APP_NAME := edb-cnp-gke-autopilot -APP_NAME_DEV := edb-cnp-gke-autopilot-dev +APP_NAME := edb-cnpg-gke-autopilot +APP_NAME_DEV := edb-cnpg-gke-autopilot-dev REGISTRY := gcr.io/public-edb-ppas TAG ?= 1.20.0 DOCKER_BUILDKIT := 1 @@ -66,19 +66,19 @@ cnpg-push-prod: ## Push the cnpg image to the production project .PHONY: update-chart update-chart: ## Update the CNPG dependency chart helm repo add cnpg https://cloudnative-pg.github.io/charts - helm dependency build chart/edb-cnp-gke-autopilot + helm dependency build chart/edb-cnpg-gke-autopilot .PHONY: install install: ## Install the deployer image via mpdev mpdev install \ --deployer=${REGISTRY}/${APP_NAME_DEV}/deployer:${TAG} \ - --parameters='{"name": "edb-cnp-gke-autopilot-test","namespace": "cnpg-system","metering.reportingSecret": "fake-reporting-secret"}' + --parameters='{"name": "edb-cnpg-gke-autopilot-test","namespace": "cnpg-system","metering.reportingSecret": "fake-reporting-secret"}' .PHONY: install-prod install-prod: ## Install the deployer image via mpdev mpdev install \ --deployer=${REGISTRY}/${APP_NAME}/deployer:${TAG} \ - --parameters='{"name": "edb-cnp-gke-autopilot-test","namespace": "cnpg-system","metering.reportingSecret": "fake-reporting-secret"}' + --parameters='{"name": "edb-cnpg-gke-autopilot-test","namespace": "cnpg-system","metering.reportingSecret": "fake-reporting-secret"}' .PHONY: verify-install verify-install: ## Run the Marketplace verifier diff --git a/README.md b/README.md index 49256cf..8a65625 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ gcloud container clusters get-credentials "${CLUSTER}" --zone "${ZONE}" Clone this repo and its associated tools repo: ```shell -git clone --recursive https://github.com/EnterpriseDB/edb-cnp-gke-autopilot-deployer.git +git clone --recursive https://github.com/EnterpriseDB/edb-cnpg-gke-autopilot-deployer.git ``` #### Install the Application resource definition @@ -103,7 +103,7 @@ The source code can be found on [github.com/kubernetes-sigs/application](https:/ Navigate to the `edb-cnp-gke-autopilot-deployer` directory: ```shell -cd edb-cnp-gke-autopilot-deployer +cd edb-cnpg-gke-autopilot-deployer ``` #### Configure the app with environment variables @@ -209,7 +209,7 @@ Use `helm template` to expand the template. We recommend that you save the expanded manifest file for future updates to the app. ```shell -helm template "${APP_INSTANCE_NAME}" chart/edb-cnp-gke-autopilot\ +helm template "${APP_INSTANCE_NAME}" chart/edb-cnpg-gke-autopilot\ --namespace "${NAMESPACE}" \ --set cloudnative-pg.image.repository="${IMAGE_OPERATOR}" \ --set cloudnative-pg.image.tag="${TAG}" \ diff --git a/chart/edb-cnp-gke-autopilot/Chart.yaml b/chart/edb-cnp-gke-autopilot/Chart.yaml index 8f8d9f1..3ba59ba 100644 --- a/chart/edb-cnp-gke-autopilot/Chart.yaml +++ b/chart/edb-cnp-gke-autopilot/Chart.yaml @@ -1,3 +1,3 @@ engine: gotpl -name: edb-cnp-gke-autopilot +name: edb-cnpg-gke-autopilot version: 1.0.0 \ No newline at end of file diff --git a/chart/edb-cnp-gke-autopilot/values.yaml b/chart/edb-cnp-gke-autopilot/values.yaml index 1c32a6e..df4ee71 100644 --- a/chart/edb-cnp-gke-autopilot/values.yaml +++ b/chart/edb-cnp-gke-autopilot/values.yaml @@ -1,6 +1,6 @@ cloudnative-pg: podLabels: - app: edb-cnp-gke-autopilot + app: edb-cnpg-gke-autopilot serviceAccount: create: false rbac: @@ -31,7 +31,7 @@ metering: pullPolicy: IfNotPresent reportingSecret: "" labels: - app: edb-cnp-gke-autopilot-metering + app: edb-cnpg-gke-autopilot-metering secretName: "" serviceAccountName: "" podSecurityContext: