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

feat(projen): upgrade dependencies for last 3 minor versions #532

Merged
merged 5 commits into from
Jan 19, 2024
Merged
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
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