From 384ecdc04566a4e962fdc49d7980782d29de47b5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 04:44:26 +0000 Subject: [PATCH 1/7] chore(deps): update reviewdog/action-yamllint action to v1.19.0 --- .github/workflows/yamllint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/yamllint.yaml b/.github/workflows/yamllint.yaml index a658e10..72aabfa 100644 --- a/.github/workflows/yamllint.yaml +++ b/.github/workflows/yamllint.yaml @@ -7,7 +7,7 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - name: yamllint - uses: reviewdog/action-yamllint@81750f17598452d2e2656b7281a55788abafc205 # v1.12.0 + uses: reviewdog/action-yamllint@e09f07780388032a624e9eb44a23fd1bbb4052cc # v1.19.0 with: reporter: github-pr-review filter_mode: nofilter From e8179d42d79622d2288ee9846954b6ac5c4edbf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=A4sser?= Date: Thu, 19 Sep 2024 14:36:09 +0200 Subject: [PATCH 2/7] Bring readme on par with platform-ref-aws --- README.md | 70 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 46 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 84faa7b..a6295f7 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,8 @@ curl -sL https://cli.upbound.io | sh ``` See [up docs](https://docs.upbound.io/cli/) for more install options. +To intstall `crossplane` CLI follow https://docs.crossplane.io/latest/cli/#installing-the-cli + For installing the platform we need a running Crossplane control plane. We are using [Universal Crossplane (UXP) ](https://github.com/upbound/universal-crossplane). Ensure that your kubectl @@ -89,9 +91,12 @@ kind create cluster Finally install UXP into the `upbound-system` namespace: ```console -up uxp install +up uxp install --set='args[0]=--enable-usages' ``` +We will need [Usages](https://docs.crossplane.io/latest/concepts/usages/) alpha feature +for the correct deployment and eventual de-provisioning of this reference platform. + You can validate the install by inspecting all installed components: ```console @@ -105,14 +110,20 @@ configuration package](https://docs.crossplane.io/latest/concepts/packages/) so there is a single command to install it: ```console -up ctp configuration install xpkg.upbound.io/upbound/platform-ref-gcp:v0.5.0 +up ctp configuration install xpkg.upbound.io/upbound/platform-ref-gcp:v0.9.0 ``` Validate the install by inspecting the provider and configuration packages: ```console -kubectl get providers,providerrevision - kubectl get configurations,configurationrevisions +kubectl get configurations --watch +``` + +After all Configurations are ready, you can check the status of associated +Providers that were pulled as dependencies + +```console +kubectl get providers,providerrevision ``` Check the @@ -169,7 +180,7 @@ gcloud projects add-iam-policy-binding --role="$ROLE" $PROJECT_ID --member "serv kubectl apply -f https://raw.githubusercontent.com/upbound/platform-ref-gcp/main/examples/gcp-default-provider.yaml ``` -See [provider-gcp docs](https://marketplace.upbound.io/providers/upbound/provider-gcp/latest/docs/configuration) for more detailed configuration options. +See [provider-gcp docs](https://marketplace.upbound.io/providers/upbound/provider-gcp) for more detailed configuration options. ### Using the GCP reference platform @@ -187,9 +198,21 @@ kubectl apply -f https://raw.githubusercontent.com/upbound/platform-ref-gcp/main Create a custom defined database: ```console -kubectl apply -f https://raw.githubusercontent.com/upbound/platform-ref-gcp/main/examples/postgres-claim.yaml +kubectl apply -f https://raw.githubusercontent.com/upbound/platform-ref-gcp/main/examples/mariadb-claim.yaml +``` + +**NOTE**: The database abstraction relies on the cluster claim to be ready - it +uses the same network to have connectivity with the EKS cluster. + +Now deploy the sample application: + +``` +kubectl apply -f examples/app-claim.yaml ``` +**NOTE**: application has a strong dependency on mariadb type of the database + + You can verify status by inspecting the claims, composites and managed resources: @@ -197,6 +220,14 @@ resources: kubectl get claim,composite,managed ``` +To get nice representation of the Claim deployment status you can use +[crossplane beta trace](https://docs.crossplane.io/latest/cli/command-reference/#beta-trace) command + +```console +crossplane beta trace cluster.aws.platformref.upbound.io/platform-ref-aws +``` + + If you see an error about the `compute.globalAddresses.list` permission for the project, try running the following gcloud command: ``` gcloud projects add-iam-policy-binding HOST_PROJECT_NAME \ @@ -210,7 +241,7 @@ documentation](https://cloud.google.com/sql/docs/postgres/configure-private-serv To delete the provisioned resources, you would simply delete the claims again: ```console -kubectl delete -f examples/cluster-claim.yaml,examples/postgres-claim.yaml +kubectl delete -f examples/cluster-claim.yaml,examples/mariadb-claim.yaml,examples/app-claim.yaml ``` To uninstall the provider & platform configuration: @@ -257,7 +288,7 @@ account](https://accounts.upbound.io/register) to push your custom platform. Afterwards you can log in: ```console -up login --username=$ORG +up login ``` ### Make the changes @@ -275,31 +306,22 @@ To share your new platform you need to build and distribute this package. To build the package use the `up xpkg build` command: ```console -up xpkg build --name package.xpkg --package-root=package --examples-root=examples +up xpkg build --name package.xpkg --package-root=. --examples-root=examples --ignore=".github/workflows/*.yaml,.github/workflows/*.yml,examples/*.yaml,.work/uptest-datasource.yaml" ``` -Afterwards you can it to the marketplace. Don't worry it's private to you. +Afterwards you can push it to the marketplace. It will be not automatically +listed but the OCI repository will be publicly accessible. ```console TAG=v0.1.0 -up repo create ${PLATFORM} -up xpkg push ${ORG}/${PLATFORM}:${TAG} -f package/package.xpkg -``` - -You can now see your listing in the marketplace: -```console -open https://marketplace.upbound.io/configurations/${ORG}/${PLATFORM}/${TAG} +up repo -a $ORG create ${PLATFORM} +up xpkg push ${ORG}/${PLATFORM}:${TAG} -f package.xpkg ``` ## Using your custom platform -Now if you want to use it you can follow the steps from above. The only -difference is that you need to specify a package-pull-secret as the package is -currently private: - -```console -up ctp pull-secret create personal-pull-secret -``` +Now to use your custom platform, you can pull the Configuration package from +your repository ```console up ctp configuration install xpkg.upbound.io/${ORG}/${PLATFORM}:${TAG} --package-pull-secrets=personal-pull-secret From 9a415224d0c285477b8677ccccf3cfce3353f1b5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:33:18 +0000 Subject: [PATCH 3/7] chore(deps): update actions/upload-artifact digest to b4b15b8 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 43efe12..3eb42ae 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,7 +57,7 @@ jobs: BUILD_ARGS: "--load" - name: Publish Artifacts to GitHub - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4 + uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4 with: name: output path: _output/** From 99e84d406f4aacfa8b018de6aa853393e78ebc5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=A4sser?= Date: Mon, 21 Oct 2024 09:50:45 +0200 Subject: [PATCH 4/7] Provide full urls to examples in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a6295f7..fc8644b 100644 --- a/README.md +++ b/README.md @@ -241,7 +241,7 @@ documentation](https://cloud.google.com/sql/docs/postgres/configure-private-serv To delete the provisioned resources, you would simply delete the claims again: ```console -kubectl delete -f examples/cluster-claim.yaml,examples/mariadb-claim.yaml,examples/app-claim.yaml +kubectl delete -f https://raw.githubusercontent.com/upbound/platform-ref-gcp/main/examples/cluster-claim.yaml,https://raw.githubusercontent.com/upbound/platform-ref-gcp/main/examples/mariadb-claim.yaml,https://raw.githubusercontent.com/upbound/platform-ref-gcp/main/examples/app-claim.yaml ``` To uninstall the provider & platform configuration: From 4d72417c7718aa7e68dbe8bfaf485b0f1992ebd5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:30:59 +0000 Subject: [PATCH 5/7] chore(deps): update actions/checkout digest to 11bd719 --- .github/workflows/ci.yaml | 2 +- .github/workflows/tag.yml | 2 +- .github/workflows/yamllint.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3eb42ae..a214d7b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,7 +42,7 @@ jobs: install: true - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: submodules: true diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index a9153f1..eb4c74d 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - name: Create Tag uses: negz/create-tag@39bae1e0932567a58c20dea5a1a0d18358503320 # v1 diff --git a/.github/workflows/yamllint.yaml b/.github/workflows/yamllint.yaml index 72aabfa..a8d64c1 100644 --- a/.github/workflows/yamllint.yaml +++ b/.github/workflows/yamllint.yaml @@ -5,7 +5,7 @@ jobs: name: runner / yamllint runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - name: yamllint uses: reviewdog/action-yamllint@e09f07780388032a624e9eb44a23fd1bbb4052cc # v1.19.0 with: From f06e0c48561ca21a46456d2df7095a24f1c71d9f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 16:07:13 +0000 Subject: [PATCH 6/7] chore(deps): update dependency upbound/configuration-gcp-gke to v0.7.0 --- crossplane.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crossplane.yaml b/crossplane.yaml index b0e5491..ca1de73 100644 --- a/crossplane.yaml +++ b/crossplane.yaml @@ -35,7 +35,7 @@ spec: version: "v0.5.0" - configuration: xpkg.upbound.io/upbound/configuration-gcp-gke # renovate: datasource=github-releases depName=upbound/configuration-gcp-gke - version: "v0.5.0" + version: "v0.7.0" - configuration: xpkg.upbound.io/upbound/configuration-gcp-database # renovate: datasource=github-releases depName=upbound/configuration-gcp-database version: "v0.5.0" From ebc67ef0ada2107cf10e9f23573f36a8f6f99c4d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 5 Nov 2024 01:34:47 +0000 Subject: [PATCH 7/7] chore(deps): update docker/login-action digest to 9780b0c --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a214d7b..6b36819 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -63,7 +63,7 @@ jobs: path: _output/** - name: Login to Upbound - uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3 + uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 if: env.XPKG_ACCESS_ID != '' with: registry: xpkg.upbound.io