diff --git a/cloudbuild/README.md b/cloudbuild/README.md index 4a021927..fff85a30 100644 --- a/cloudbuild/README.md +++ b/cloudbuild/README.md @@ -8,28 +8,36 @@ See [remote-builder](https://github.com/GoogleCloudPlatform/cloud-builders-commu ## Release +### Prerequisites + +Ensure your Application Default Credentials (ADC) quota project is set to `openconfig-lemming` so that Cloud Build API calls are authorized and billed to the correct project: + +```bash +gcloud auth application-default set-quota-project openconfig-lemming +``` + ### Lemming -To run release a new version of lemming run: `go run ./cmd/release lemming VERSION` +To release a new version of lemming run: `go run ./cmd/lemctl internal release lemming VERSION` The following steps are run: 1. Trigger prerelease tests in Cloud Build: lemming integration tests (see lemming-test.sh). 1. Runs using the latest released version of the operator and builds lemming from HEAD. 2. Create and push git tag. -3. Push and push lemming to GAR. +3. Push lemming to GAR. ### Operator -To run release a new version of operator run: `go run ./cmd/release lemming VERSION` +To release a new version of operator run: `go run ./cmd/lemctl internal release operator VERSION` The following steps are run: 1. Trigger prerelease tests in Cloud Build: deploys a simple 2 lemming topology (see operator-test.sh). 1. Runs using the latest released version of lemming and builds operator from HEAD. 2. Create and push git tag. -3. Push and push operator to GAR. +3. Push operator to GAR. -After push (not automated) +### After push (not automated) -1. Modify operator/config/manager/kustomization.yaml `newTag` to the new version. +1. Modify `operator/config/manager/kustomization.yaml` `newTag` to the new version. 2. Run `kubectl kustomize operator/config/default > /manifests/controllers/lemming/manifest.yaml` 3. Create PR to update manifest in kne. \ No newline at end of file diff --git a/operator/config/manager/kustomization.yaml b/operator/config/manager/kustomization.yaml index f9f6cb0c..3145a0fc 100644 --- a/operator/config/manager/kustomization.yaml +++ b/operator/config/manager/kustomization.yaml @@ -13,4 +13,4 @@ kind: Kustomization images: - name: controller newName: us-west1-docker.pkg.dev/openconfig-lemming/release/operator - newTag: v0.2.3 + newTag: v0.2.9