Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use latest tag before non-release version #164

Merged
merged 1 commit into from
Aug 23, 2021

Conversation

jaypipes
Copy link
Collaborator

@jaypipes jaypipes commented Aug 23, 2021

Updates the build-controller-release.sh script to check for the latest
Git tag on the target service controller repository before defaulting
the RELEASE_VERSION to v0.0.0-non-release-version. This allows
developers to regenerate their service controllers with new ACK runtimes
without overwriting the static manifests' image versions from the latest
published Git tag to v0.0.0-non-release-version. For service
controllers that have yet to release any images, the
v0.0.0-non-release-version continues to be used.

Before this patch:

[jaypipes@thelio code-generator]$ make build-controller SERVICE=rds
building ack-generate ... ok.
==== building rds-controller ====
Copying common custom resource definitions into rds
Building Kubernetes API objects for rds
Generating deepcopy code for rds
Generating custom resource definitions for rds
Building service controller for rds
Generating RBAC manifests for rds
Running gofmt against generated code for rds
==== building rds-controller release artifacts ====
Building release artifacts for rds-v0.0.0-non-release-version
Generating common custom resource definitions
Generating custom resource definitions for rds
Generating RBAC manifests for rds

After this patch:

[jaypipes@thelio code-generator]$ make build-controller SERVICE=rds
building ack-generate ... ok.
==== building rds-controller ====
Copying common custom resource definitions into rds
Building Kubernetes API objects for rds
Generating deepcopy code for rds
Generating custom resource definitions for rds
Building service controller for rds
Generating RBAC manifests for rds
Running gofmt against generated code for rds
==== building rds-controller release artifacts ====
Building release artifacts for rds-v0.0.4
Generating common custom resource definitions
Generating custom resource definitions for rds
Generating RBAC manifests for rds

Note that at this time, the RDS controller's latest published image is
v0.0.4.

Issue aws-controllers-k8s/community#912

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

Updates the `build-controller-release.sh` script to check for the latest
Git tag on the target service controller repository before defaulting
the RELEASE_VERSION to `v0.0.0-non-release-version`. This allows
developers to regenerate their service controllers with new ACK runtimes
without overwriting the static manifests' image versions from the latest
published Git tag to `v0.0.0-non-release-version`. For service
controllers that have yet to release any images, the
`v0.0.0-non-release-version` continues to be used.

Before this patch:

```
[jaypipes@thelio code-generator]$ make build-controller SERVICE=rds
building ack-generate ... ok.
==== building rds-controller ====
Copying common custom resource definitions into rds
Building Kubernetes API objects for rds
Generating deepcopy code for rds
Generating custom resource definitions for rds
Building service controller for rds
Generating RBAC manifests for rds
Running gofmt against generated code for rds
==== building rds-controller release artifacts ====
Building release artifacts for rds-v0.0.0-non-release-version
Generating common custom resource definitions
Generating custom resource definitions for rds
Generating RBAC manifests for rds
```

After this patch:

```
[jaypipes@thelio code-generator]$ make build-controller SERVICE=rds
building ack-generate ... ok.
==== building rds-controller ====
Copying common custom resource definitions into rds
Building Kubernetes API objects for rds
Generating deepcopy code for rds
Generating custom resource definitions for rds
Building service controller for rds
Generating RBAC manifests for rds
Running gofmt against generated code for rds
==== building rds-controller release artifacts ====
Building release artifacts for rds-v0.0.4
Generating common custom resource definitions
Generating custom resource definitions for rds
Generating RBAC manifests for rds
```

Note that at this time, the RDS controller's latest published image is
`v0.0.4`.

Issue #912
@jaypipes jaypipes removed the request for review from RedbackThomson August 23, 2021 12:04
Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@a-hilaly
Copy link
Member

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 23, 2021
@a-hilaly
Copy link
Member

/lgtm cancel

@ack-bot ack-bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 23, 2021
@a-hilaly
Copy link
Member

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 23, 2021
@ack-bot
Copy link
Collaborator

ack-bot commented Aug 23, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: A-Hilaly, jaypipes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-bot ack-bot merged commit ac8470e into aws-controllers-k8s:main Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants