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

Refactor release process for Github and Staging #2096

Merged

Conversation

randomvariable
Copy link
Member

Replace use of sed with gojq to modify templates, by copying manifests to _artifacts and outputting to out/*-components.yaml, preventing source files being modified in place.

Switch to using Docker build cache to speed up builds, which should reduce CloudBuild times significantly.

CloudBuild modified such that manifests will be generated and uploaded to GCS on execution. This will allow advanced users to be able to test manifests directly from staging for testing prior to release.

Finally, targets are added to create a release in Github using the Github CLI.

Signed-off-by: Naadir Jeewa jeewan@vmware.com

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 6, 2020
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 6, 2020
@randomvariable randomvariable force-pushed the manifest-updates branch 4 times, most recently from edd0193 to 51eeecf Compare November 6, 2020 17:44
@MarcusNoble
Copy link
Contributor

This all looks good to me. Only thing I'd suggest is if possible are we able to break the Makefile down any more? It's becoming quite an intimidating file.

Makefile Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
Makefile Show resolved Hide resolved
Makefile Show resolved Hide resolved
@randomvariable randomvariable force-pushed the manifest-updates branch 3 times, most recently from 8490f58 to 3460874 Compare November 9, 2020 15:20
@randomvariable
Copy link
Member Author

This all looks good to me. Only thing I'd suggest is if possible are we able to break the Makefile down any more? It's becoming quite an intimidating file.

I think as a followup, probably start moving the make targets for each controller into their own directories.

@randomvariable randomvariable force-pushed the manifest-updates branch 2 times, most recently from 028253a to 9bff071 Compare November 9, 2020 15:23
Makefile Show resolved Hide resolved
@randomvariable randomvariable force-pushed the manifest-updates branch 2 times, most recently from 140745d to c366dec Compare November 9, 2020 15:45
Makefile Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@randomvariable randomvariable force-pushed the manifest-updates branch 4 times, most recently from e670a6e to 1874655 Compare November 9, 2020 17:18
@sedefsavas
Copy link
Contributor

@randomvariable Thanks for the sed change! CAPI would benefit from this too.

This LGTM but do we want to include this in v0.6.2 release?

@randomvariable
Copy link
Member Author

@sedefsavas don't need it in v0.6.2 at this stage.

@randomvariable randomvariable added this to the v0.6.x milestone Nov 9, 2020
@sedefsavas
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 12, 2020
@randomvariable
Copy link
Member Author

/assign @ncdc

tl;dr, finally stopped all the config files being rewritten.

@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 18, 2020
Copy link
Member

@richardcase richardcase left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 1, 2020
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 19, 2020
@k8s-ci-robot k8s-ci-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jan 15, 2021
Replace use of sed with gojq to modify templates, by copying
manifests to _artifacts and outputting to out/*-components.yaml,
preventing source files being modified in place.

Switch to using Docker build cache to speed up builds, should
reduce CloudBuild times significantly.

CloudBuild modified such that manifests will be generated and uploaded
to GCS on execution. This will allow advanced users to be able to test
manifests directly from staging for testing prior to release.

Finally, targets are added to create a release in Github using the
Github CLI.

Signed-off-by: Naadir Jeewa <jeewan@vmware.com>
@randomvariable
Copy link
Member Author

I've rebased this @richardcase

@richardcase
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 15, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: richardcase

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 15, 2021
@k8s-ci-robot k8s-ci-robot merged commit 1df714c into kubernetes-sigs:master Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants