Skip to content

Commit

Permalink
feat(projen): upgrade dependencies for last 3 minor versions (#532)
Browse files Browse the repository at this point in the history
Labeling as a feat because I also want to release v28 with the latest change that was marked chore on accident.
  • Loading branch information
kaizencc committed Jan 19, 2024
1 parent 806580c commit 2dc08ca
Show file tree
Hide file tree
Showing 7 changed files with 207 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 91 additions & 0 deletions .github/workflows/upgrade-kubectl-v26-main.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 91 additions & 0 deletions .github/workflows/upgrade-kubectl-v27-main.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .projen/files.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ const project = new awscdk.AwsCdkConstructLibrary({
secret: 'GITHUB_TOKEN',
},
autoApproveUpgrades: true,
// We support the last 3 minor versions just like Kubernetes
depsUpgradeOptions: {
workflowOptions: {
branches: [
`kubectl-v${SPEC_VERSION}/main`,
`kubectl-v${Number(SPEC_VERSION)-1}/main`,
`kubectl-v${Number(SPEC_VERSION)-2}/main`,
],
labels: ['auto-approve'],
},
},
majorVersion: 2,
npmAccess: NpmAccess.PUBLIC,
releaseTagPrefix: `kubectl-v${SPEC_VERSION}`,
Expand Down
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ information to effectively respond to your bug report or contribution.

Specifically, if you wish to contribute a new Kubectl Asset with a different kubectl version, jump to [Contributing a new Kubectl Asset](#contributing-a-new-kubectl-asset).

## Supported Versions

Similar to [kubernetes](https://kubernetes.io/releases/), we support the most recent three minor versions.
This means that we continue to upgrade dependencies for the most recent three versions.

We also plan to have the default branch of this repository to be the latest released version. If that is
not the case, please raise a GitHub Issue with us!

## Reporting Bugs/Feature Requests

Expand Down Expand Up @@ -64,6 +71,7 @@ Run `npx projen integ:kubectl-layer:snapshot` if `deploy` succeeds and the snaps
7. Run `yarn build` to ensure everything builds correctly.
8. Commit to your fork and submit a pull request to the repository, _ensuring that you are targeting the correct `kubectl-vY/main` branch_.
9. A maintainer will review your contribution from there!
10. ⚠️ IMPORTANT ⚠️ The maintainer should go into the repository settings and update the default branch to the new, latest version.

## Backporting changes to branches with different Kubectl versions
This repository consists of multiple branches, with each branch corresponding to a specific Kubectl version.
Expand Down

0 comments on commit 2dc08ca

Please sign in to comment.