Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions cloudbuild/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 > <kne-repo>/manifests/controllers/lemming/manifest.yaml`
3. Create PR to update manifest in kne.
2 changes: 1 addition & 1 deletion operator/config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading