-
Notifications
You must be signed in to change notification settings - Fork 807
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
Add release scripts for upgrading sidecar dependencies and collating image digests #1792
Add release scripts for upgrading sidecar dependencies and collating image digests #1792
Conversation
24a8e7b
to
bddbe0b
Compare
06a3360
to
ae54aaf
Compare
|
||
# Force macOS users to use gsed due to -i incompatibility | ||
export SED="sed" | ||
if [[ $(uname) = "Darwin" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of checking the OS directly, is there a way that we could instead check if the local sed
has the support we need? What if a linux user has BSD sed installed, for example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking into that the best solution I found involves grep
-ing the sed
man page Shell — How to detect some command using GNU or BSD ? ( man sed | grep GNU ). Therefore I think this workaround is fine enough to solve this common MacOs gotcha unless you have a cleaner solution ready.
./hack/release-scripts/generate-sidecar-tags | ||
|
||
.PHONY: update-sidecar-dependencies | ||
update-sidecar-dependencies: update-truth-sidecars generate-sidecar-tags generate-kustomize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this run generate-kustomize
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because generate-kustomize
will propagate the updates in deploy/kubernetes/overlays/stable/gcr/kustomization.yaml
to deploy/kubernetes/base/controller.yaml
and deploy/kubernetes/base/node.yaml
2017d9a
to
56b26a0
Compare
Code Coverage DiffThis PR does not change the code coverage |
56b26a0
to
081c936
Compare
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: torredil 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 |
/retest |
@AndrewSirenko: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest |
Is this a bug fix or adding new feature?
Release automation
What is this PR about? / Why do we need it?
This PR adds:
image-digests-template.yaml
: A helper file for collating images, tags, and manifest digests used in the rest of the repository. Scripts inhack/release-scripts
will generate animage-digests.yaml
file from this template and propagating those updates to the rest of the repository.get-latest-sidecar-images
: Generates aimage-digests.yaml
file with the latest tags and associated manifest digests for each sidecar image by usingcrane
.generate-sidecar-tags
in hack/release-scripts: Generates the sidecar image tags indeploy/kubernetes/overlays/stable/gcr/kustomization.yaml
andcharts/aws-ebs-csi-driver/values.yaml
based off of the values inhack/release-scripts/image-digests.yaml
update-sidecar-dependencies
Makefile target: Fetches latest sidecar tags and syncs helm/kustomize files via the following Makefile targetsupdate-truth-sidecars
generate-sidecar-tags
generate-kustomize
See previous discussion here: [Automate-Release-1] Add image-source-of-truth.yaml and update-truth-sidecars scripts #1791
What testing is done?
Running
make update-sidecar-dependencies
will and produce the following diff:Running
make verify
successfully passes afterwards