Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 04e2241

Browse files
committed
testing trivy scan
1 parent 603f196 commit 04e2241

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ export GO111MODULE=on
4545
# Base docker images
4646

4747
DOCKERFILE_CONTAINER_IMAGE ?= docker.io/docker/dockerfile:1.4
48-
# DEPLOYMENT_BASE_IMAGE ?= gcr.io/distroless/static
49-
# DEPLOYMENT_BASE_IMAGE_TAG ?= nonroot-${ARCH}
5048
DEPLOYMENT_BASE_IMAGE ?= ubuntu
5149
DEPLOYMENT_BASE_IMAGE_TAG ?= 22.04
5250
BUILD_CONTAINER_ADDITIONAL_ARGS ?=
@@ -220,7 +218,7 @@ endif
220218

221219
PROD_REGISTRY ?= ghcr.io/patricklaabs/cluster-api-addon-provider-cdk8s
222220

223-
STAGING_REGISTRY ?= ghcr.io/patricklaabs/k8s-staging-cluster-api-cdk8s
221+
STAGING_REGISTRY ?= ghcr.io/patricklaabs/cluster-api-addon-provider-cdk8s
224222
STAGING_BUCKET ?= artifacts.k8s-staging-cluster-api-cdk8s.appspot.com
225223

226224
# core
@@ -594,7 +592,7 @@ release-staging: ## Build and push container images to the staging bucket
594592
REGISTRY=$(STAGING_REGISTRY) $(MAKE) docker-build-all docker-push-all release-alias-tag
595593

596594
.PHONY: release-staging-nightly
597-
release-staging-nightly: ## Tag and push container images to the staging bucket. Example image tag: cluster-api-helm-controller:nightly_main_20210121
595+
release-staging-nightly: ## Tag and push container images to the staging bucket. Example image tag: cluster-api-cdk8s-controller:nightly_main_20210121
598596
$(eval NEW_RELEASE_ALIAS_TAG := nightly_$(RELEASE_ALIAS_TAG)_$(shell date +'%Y%m%d'))
599597
echo $(NEW_RELEASE_ALIAS_TAG)
600598
$(MAKE) release-alias-tag TAG=$(RELEASE_ALIAS_TAG) RELEASE_ALIAS_TAG=$(NEW_RELEASE_ALIAS_TAG)

config/default/manager_pull_policy.yaml-e

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ spec:
88
spec:
99
containers:
1010
- name: manager
11-
imagePullPolicy: Always
11+
imagePullPolicy: IfNotPresent

hack/verify-container-images.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ chmod +x ${TOOL_BIN}/trivy
5353
rm ${TOOL_BIN}/trivy.tar.gz
5454

5555
# Builds all the container images to be scanned and cleans up changes to ./*manager_image_patch.yaml ./*manager_pull_policy.yaml.
56-
make REGISTRY=gcr.io/k8s-staging-cluster-api-helm PULL_POLICY=IfNotPresent TAG=dev docker-build
56+
make REGISTRY=ghcr.io/patricklaabs/cluster-api-addon-provider-cdk8s/cluster-api-cdk8s-controller PULL_POLICY=IfNotPresent TAG=dev docker-build
5757
make clean-release-git
5858

5959
# Scan the images
60-
${TOOL_BIN}/trivy image -q --exit-code 1 --ignore-unfixed --severity MEDIUM,HIGH,CRITICAL gcr.io/k8s-staging-cluster-api-helm/cluster-api-helm-controller-"${GO_ARCH}":dev && R5=$? || R5=$?
60+
${TOOL_BIN}/trivy image -q --exit-code 1 --ignore-unfixed --severity MEDIUM,HIGH,CRITICAL ghcr.io/patricklaabs/cluster-api-addon-provider-cdk8s/cluster-api-cdk8s-controller-"${GO_ARCH}":dev && R5=$? || R5=$?
6161

6262
echo ""
6363
BRed='\033[1;31m'

scripts/ci-e2e-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ capi:buildDockerImages () {
2222
# please ensure the generated image name matches image names used in the E2E_CONF_FILE;
2323
# also the same settings must be set in Makefile, docker-build-e2e target.
2424
ARCH="$(go env GOARCH)"
25-
export REGISTRY=gcr.io/k8s-staging-cluster-api-helm
25+
export REGISTRY=ghcr.io/patricklaabs/cluster-api-addon-provider-cdk8s
2626
export TAG=dev
2727
export ARCH
2828

0 commit comments

Comments
 (0)