Skip to content

Commit

Permalink
Use placeholder for git-sync and otelcontribcol image versions (#1471)
Browse files Browse the repository at this point in the history
  • Loading branch information
nan-yu authored Oct 31, 2024
1 parent 8b1eac6 commit d36ecfe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,12 @@ test-unit: buildenv-dirs "$(KUSTOMIZE)"
# small unit test to verify the behavior of an example kustomization for manual install
.PHONY: test-kustomization
test-kustomization:
$(MAKE) build-manifests STAGING_DIR=$(OUTPUT_DIR)/testing REGISTRY=gcr.io/cs-test IMAGE_TAG=placeholder
$(MAKE) build-manifests \
STAGING_DIR=$(OUTPUT_DIR)/testing \
REGISTRY=gcr.io/cs-test \
IMAGE_TAG=placeholder \
GIT_SYNC_VERSION=placeholder \
OTELCONTRIBCOL_VERSION=placeholder
@./scripts/test-kustomization.sh

# Runs unit tests and linter.
Expand Down
10 changes: 5 additions & 5 deletions test/kustomization/expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5786,7 +5786,7 @@ data:
- ALL
imagePullPolicy: IfNotPresent
- name: git-sync
image: gcr.io/config-management-release/git-sync:v4.2.4-gke.8__linux_amd64
image: gcr.io/config-management-release/git-sync:placeholder
args: ["--root=/repo/source", "--link=rev", "--max-failures=30", "--error-file=error.json"]
volumeMounts:
- name: repo
Expand Down Expand Up @@ -5846,7 +5846,7 @@ data:
- ALL
runAsUser: 65533
- name: otel-agent
image: gcr.io/config-management-release/otelcontribcol:v0.103.0-gke.4
image: gcr.io/config-management-release/otelcontribcol:placeholder
command:
- /otelcontribcol
args:
Expand Down Expand Up @@ -6106,7 +6106,7 @@ spec:
- --feature-gates=-pkg.translator.prometheus.NormalizeName
command:
- /otelcontribcol
image: gcr.io/config-management-release/otelcontribcol:v0.103.0-gke.4
image: gcr.io/config-management-release/otelcontribcol:placeholder
name: otel-collector
ports:
- containerPort: 55678
Expand Down Expand Up @@ -6318,7 +6318,7 @@ spec:
fieldPath: metadata.labels['configsync.gke.io/deployment-name']
- name: OTEL_RESOURCE_ATTRIBUTES
value: k8s.pod.name=$(KUBE_POD_NAME),k8s.pod.namespace=$(KUBE_POD_NAMESPACE),k8s.pod.uid=$(KUBE_POD_UID),k8s.pod.ip=$(KUBE_POD_IP),k8s.node.name=$(KUBE_NODE_NAME),k8s.deployment.name=$(KUBE_DEPLOYMENT_NAME)
image: gcr.io/config-management-release/otelcontribcol:v0.103.0-gke.4
image: gcr.io/config-management-release/otelcontribcol:placeholder
name: otel-agent
ports:
- containerPort: 55678
Expand Down Expand Up @@ -6441,7 +6441,7 @@ spec:
fieldPath: metadata.labels['configsync.gke.io/deployment-name']
- name: OTEL_RESOURCE_ATTRIBUTES
value: k8s.pod.name=$(KUBE_POD_NAME),k8s.pod.namespace=$(KUBE_POD_NAMESPACE),k8s.pod.uid=$(KUBE_POD_UID),k8s.pod.ip=$(KUBE_POD_IP),k8s.node.name=$(KUBE_NODE_NAME),k8s.deployment.name=$(KUBE_DEPLOYMENT_NAME)
image: gcr.io/config-management-release/otelcontribcol:v0.103.0-gke.4
image: gcr.io/config-management-release/otelcontribcol:placeholder
name: otel-agent
ports:
- containerPort: 55678
Expand Down

0 comments on commit d36ecfe

Please sign in to comment.