-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'kubernetes-sigs:main' into issue-4740
- Loading branch information
Showing
493 changed files
with
51,938 additions
and
17,834 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Add or remove maintainer | ||
description: To be used when making changes to project maintainers. | ||
labels: ["kind/support"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Use this form to make changes to the maintainers of CAPA | ||
- type: input | ||
id: github_handle | ||
attributes: | ||
label: GitHub handle | ||
description: The GitHub handle of the maintainer that changes will be made to. | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: action | ||
attributes: | ||
label: Action | ||
description: What action is being performed to the maintainers | ||
options: | ||
- Add | ||
- Remove | ||
validations: | ||
required: true | ||
- type: input | ||
id: merge_date | ||
attributes: | ||
label: Merge date | ||
description: Enter the date when the changes can merge. The date should be 7 days or after the next CAPA office hours (whichever is longer) | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: reason | ||
attributes: | ||
label: Reason for change | ||
description: What is the reason this change is being made | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: tasks | ||
attributes: | ||
label: 🖱️Tasks | ||
value: | | ||
```[tasklist] | ||
## Tasks to be done | ||
- [ ] Update **cluster-api-aws-maintainers** section in [OWNER_ALIASES](https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/OWNERS_ALIASES) in CAPA repo | ||
- [ ] Create a PR with the change and add `/hold` | ||
- [ ] Announce the change in the CAPA slack channel | ||
- [ ] Add PSA in the notes doc for the next CAPA office hours | ||
- [ ] After the lazy consensus review period remove the hold | ||
- [ ] Update **cluster-api-provider-aws-maintainers** team in [this file](https://github.com/kubernetes/org/blob/main/config/kubernetes-sigs/sig-cluster-lifecycle/teams.yaml) | ||
- [ ] Update **approvers** for CAPA jobs [here](https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/cluster-api-provider-aws/OWNERS) | ||
- [ ] Update **approvers** from CAPA image promotion [here](https://github.com/kubernetes/k8s.io/blob/main/registry.k8s.io/images/k8s-staging-cluster-api-aws/OWNERS) | ||
- [ ] Update **[email protected]** [here](https://github.com/kubernetes/k8s.io/blob/main/groups/sig-cluster-lifecycle/groups.yaml) | ||
- [ ] Update **[email protected]** [here](https://github.com/kubernetes/k8s.io/blob/main/groups/sig-cluster-lifecycle/groups.yaml) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Add or remove reviewer | ||
description: To be used when making changes to project reviewers. See [contributing guide(https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/CONTRIBUTING.md)] for details of the projects ladder. | ||
labels: ["kind/support"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Use this form to make changes to the reviewers of CAPA | ||
- type: input | ||
id: github_handle | ||
attributes: | ||
label: GitHub handle | ||
description: The GitHub handle of the reviewer that changes will be made to. | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: action | ||
attributes: | ||
label: Action | ||
description: What action is being performed to the reviewers | ||
options: | ||
- Add | ||
- Remove | ||
validations: | ||
required: true | ||
- type: input | ||
id: merge_date | ||
attributes: | ||
label: Merge date | ||
description: Enter the date when the changes can merge. The date should be 7 days or after the next CAPA office hours (whichever is longer) | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: reason | ||
attributes: | ||
label: Reason for change | ||
description: What is the reason this change is being made | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: tasks | ||
attributes: | ||
label: 🖱️Tasks | ||
value: | | ||
```[tasklist] | ||
## Tasks to be done | ||
- [ ] Update **cluster-api-aws-reviewers** section in [OWNER_ALIASES](https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/OWNERS_ALIASES) in CAPA repo | ||
- [ ] Create a PR with the change and add `/hold` | ||
- [ ] Announce the change in the CAPA slack channel | ||
- [ ] Add PSA in the notes doc for the next CAPA office hours | ||
- [ ] After the lazy consensus review period remove the hold | ||
- [ ] Update **reviewers** for CAPA jobs [here](https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/cluster-api-provider-aws/OWNERS) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: build-and-publish-ami-with-vars | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
image_builder_version: | ||
description: "Image builder version" | ||
required: true | ||
default: 'v0.1.38' | ||
target: | ||
description: "target os" | ||
required: true | ||
type: choice | ||
options: | ||
- ubuntu-2204 | ||
- ubuntu-2404 | ||
- flatcar | ||
packer_vars: | ||
description: "Packer vars (json)" | ||
type: string | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
buildandpublish: | ||
name: Build and publish CAPA AMIs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: kubernetes-sigs/image-builder | ||
ref: ${{ inputs.image_builder_version }} | ||
fetch-depth: 0 | ||
- name: Create packer vars file | ||
if: inputs.packer_vars != '' | ||
env: | ||
PACKER_VARS: ${{ inputs.packer_vars }} | ||
run: | | ||
echo "$PACKER_VARS" | jq -r > ./images/capi/vars.json | ||
cat ./images/capi/vars.json | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-region: us-east-2 | ||
role-to-assume: arn:aws:iam::819546954734:role/gh-image-builder | ||
- name: Install deps | ||
run: make deps-ami | ||
working-directory: ./images/capi | ||
- name: Install Amazon EBS Plugin | ||
working-directory: ./images/capi | ||
run: ./.local/bin/packer plugins install github.com/hashicorp/amazon | ||
- name: Build AMI with vars | ||
if: inputs.packer_vars != '' | ||
working-directory: ./images/capi | ||
run: PACKER_VAR_FILES=vars.json make build-ami-${{ inputs.target }} | ||
- name: Build AMI without vars | ||
if: inputs.packer_vars == '' | ||
working-directory: ./images/capi | ||
run: make build-ami-${{ inputs.target }} | ||
|
Oops, something went wrong.