From f6bc9a4c029b8e475b6aac035ac4af5439459cbf Mon Sep 17 00:00:00 2001 From: Sam Singh Anantha <30288538+sanghanan@users.noreply.github.com> Date: Thu, 31 Oct 2024 23:34:39 -0400 Subject: [PATCH] feat: create cloud-provider-aws package (#32105) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This package has two subpackages: aws-cloud-controller-manager and ecr-credential-provider https://github.com/chainguard-dev/image-requests/issues/4932 Fixes: Related: ### Pre-review Checklist #### For new package PRs only - [ ] This PR is marked as fixing a pre-existing package request bug - [ ] Alternatively, the PR is marked as related to a pre-existing package request bug, such as a dependency - [ ] REQUIRED - The package is available under an OSI-approved or FSF-approved license - [ ] REQUIRED - The version of the package is still receiving security updates - [ ] This PR links to the upstream project's support policy (e.g. `endoflife.date`) #### For new version streams - [ ] The upstream project actually supports multiple concurrent versions. - [ ] Any subpackages include the version string in their package name (e.g. `name: ${{package.name}}-compat`) - [ ] The package (and subpackages) `provides:` logical unversioned forms of the package (e.g. `nodejs`, `nodejs-lts`) - [ ] If non-streamed package names no longer built, open PR to withdraw them (see [WITHDRAWING PACKAGES](https://github.com/wolfi-dev/os/blob/main/WITHDRAWING_PACKAGES.md)) #### For package updates (renames) in the base images When updating packages part of base images (i.e. cgr.dev/chainguard/wolfi-base or ghcr.io/wolfi-dev/sdk) - [ ] REQUIRED cgr.dev/chainguard/wolfi-base and ghcr.io/wolfi-dev/sdk images successfully build - [ ] REQUIRED cgr.dev/chainguard/wolfi-base and ghcr.io/wolfi-dev/sdk contain no obsolete (no longer built) packages - [ ] Upon launch, does `apk upgrade --latest` successfully upgrades packages or performs no actions #### For security-related PRs - [ ] The security fix is recorded in the [advisories](https://github.com/wolfi-dev/advisories) repo #### For version bump PRs - [ ] The `epoch` field is reset to 0 #### For PRs that add patches - [ ] Patch source is documented --------- Signed-off-by: Sam Singh Anantha --- cloud-provider-aws-1.31.yaml | 61 ++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 cloud-provider-aws-1.31.yaml diff --git a/cloud-provider-aws-1.31.yaml b/cloud-provider-aws-1.31.yaml new file mode 100644 index 00000000000..f4ccca93f3d --- /dev/null +++ b/cloud-provider-aws-1.31.yaml @@ -0,0 +1,61 @@ +package: + name: cloud-provider-aws-1.31 + version: 1.31.1 + epoch: 0 + description: The AWS cloud provider provides the interface between a Kubernetes cluster and AWS service APIs. + copyright: + - license: Apache-2.0 + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/kubernetes/cloud-provider-aws + tag: v${{package.version}} + expected-commit: 94cb7eefd72f6577a0f7840f61a47ebd4aed06f4 + +subpackages: + - name: ${{package.name}}-cloud-controller-manager + description: The AWS Cloud Controller Manager is the controller that is primarily responsible for creating and updating AWS loadbalancers (classic and NLB) and node lifecycle management. + pipeline: + - uses: go/build + with: + packages: ./cmd/aws-cloud-controller-manager + output: aws-cloud-controller-manager + ldflags: | + -X k8s.io/component-base/version.gitVersion=v${{package.version}} + -X main.gitVersion=v${{package.version}} + test: + pipeline: + - runs: | + aws-cloud-controller-manager --help + aws-cloud-controller-manager --version + + - name: ${{package.name}}-ecr-credential-provider + description: The credential provider is a binary that is executed by kubelet to provide credentials for images in ECR. + pipeline: + - uses: go/build + with: + packages: ./cmd/ecr-credential-provider + output: ecr-credential-provider + ldflags: | + -X k8s.io/component-base/version.gitVersion=v${{package.version}} + -X main.gitVersion=v${{package.version}} + test: + pipeline: + - runs: | + ecr-credential-provider --help + ecr-credential-provider --version + + - name: "${{package.name}}-cloud-controller-manager-compat" + description: "Compatibility package to place binaries in the location expected by upstream Dockerfile" + pipeline: + - runs: | + mkdir -p "${{targets.contextdir}}/bin" + ln -sf /usr/bin/aws-cloud-controller-manager ${{targets.contextdir}}/bin/aws-cloud-controller-manager + +update: + enabled: true + github: + identifier: kubernetes/cloud-provider-aws + strip-prefix: v + tag-filter: v1.31