Skip to content

Commit f71e9fb

Browse files
committed
Add dd config
1 parent 0c72333 commit f71e9fb

File tree

3 files changed

+51
-9
lines changed

3 files changed

+51
-9
lines changed

.github/workflows/sync.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Sync upstream
2+
# This runs every day on 1000 UTC
3+
on:
4+
schedule:
5+
- cron: '0 10 * * *'
6+
# Allows manual workflow run
7+
workflow_dispatch:
8+
9+
# Don't seem to be able to restrict this down since
10+
# it needs to be able to push workflows, but that
11+
# permission is not available here.
12+
permissions: write-all
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Sync with upstream
19+
uses: DataDog/sync-upstream-release-tag@main
20+
with:
21+
github_actor: "${GITHUB_ACTOR}"
22+
github_repository: "${GITHUB_REPOSITORY}"
23+
github_token: ${{ secrets.WORKFLOW_TOKEN }}
24+
date_suffix: "%Y%V"
25+
upstream_repo: kubernetes/cloud-provider-aws

.gitlab-ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
include: https://gitlab-templates.ddbuild.io/compute-delivery/v2/compute-delivery.yml
2+
3+
variables:
4+
KPR_CHART_NAME: k8s-platform-k8s-cloud-controller-manager
5+
test:
6+
stage: verify
7+
tags: [ "arch:amd64" ]
8+
image: registry.ddbuild.io/images/mirror/golang:1.21.1
9+
script:
10+
- make test
11+
12+
build-docker-image:
13+
variables:
14+
IMAGE_NAME: aws-cloud-controller-manager
15+
extends: .build-docker-image
16+
17+
# run-campaign:
18+
# variables:
19+
# CHART_NAME: k8s-platform-k8s-cloud-controller-manager
20+
# COMPONENT: aws-cloud-controller-manager
21+
# SLACK_CHANNEL: compute-ops
22+
# extends: .run-campaign

Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,15 @@
1616
# This build arg allows the specification of a custom Golang image.
1717
ARG GOLANG_IMAGE=golang:1.21.5
1818

19-
# The distroless image on which the CPI manager image is built.
20-
#
21-
# Please do not use "latest". Explicit tags should be used to provide
22-
# deterministic builds. Follow what kubernetes uses to build
23-
# kube-controller-manager, for example for 1.23.x:
24-
# https://github.com/kubernetes/kubernetes/blob/release-1.24/build/common.sh#L94
25-
ARG DISTROLESS_IMAGE=registry.k8s.io/build-image/go-runner:v2.3.1-go1.21.5-bookworm.0
19+
# Datadog's base docker image
20+
ARG BASE_IMAGE
2621

2722
################################################################################
2823
## BUILD STAGE ##
2924
################################################################################
3025
# Build the manager as a statically compiled binary so it has no dependencies
3126
# libc, muscl, etc.
32-
FROM --platform=linux/amd64 ${GOLANG_IMAGE} as builder
27+
FROM ${GOLANG_IMAGE} as builder
3328

3429
ARG GOPROXY=https://goproxy.io,direct
3530
ARG TARGETOS
@@ -51,6 +46,6 @@ RUN GO111MODULE=on CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOPROXY=$
5146
## MAIN STAGE ##
5247
################################################################################
5348
# Copy the manager into the distroless image.
54-
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}
49+
FROM --platform=${TARGETPLATFORM} ${BASE_IMAGE}
5550
COPY --from=builder /build/aws-cloud-controller-manager /bin/aws-cloud-controller-manager
5651
ENTRYPOINT [ "/bin/aws-cloud-controller-manager" ]

0 commit comments

Comments
 (0)