Skip to content

Commit b1738fd

Browse files
committed
Move image overwrite setting to the kustomization file for each environment
1 parent 5338dfd commit b1738fd

File tree

6 files changed

+36
-9
lines changed

6 files changed

+36
-9
lines changed

kubernetes/base/quickpizza/kustomization.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ resources:
99
- recommendations.yaml
1010
- ws.yaml
1111

12-
# To use a custom image (e.g., locally built), uncomment `newName` and `newTag` below.
13-
# Example: docker build -t local-quickpizza:latest . && minikube image load local-quickpizza:latest
14-
images:
15-
- name: ghcr.io/grafana/quickpizza-local
16-
# newName: local-quickpizza
17-
# newTag: latest
18-
# Note: Do not commit changes to newName/newTag values (leave commented).
19-
# TODO: Consider using Kustomize's environment variable substitution feature
20-
2112

2213
configMapGenerator:
2314
- name: quickpizza-env-common

kubernetes/cloud-dev/kustomization.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ resources:
55
- ../base/quickpizza
66
- ../base/alloy
77

8+
# To use a custom image (e.g., locally built), uncomment `newName` and `newTag` below.
9+
# Example: docker build -t local-quickpizza:latest . && minikube image load local-quickpizza:latest
10+
images:
11+
- name: ghcr.io/grafana/quickpizza-local
12+
# newName: local-quickpizza
13+
# newTag: latest
14+
# Note: Do not commit changes to newName/newTag values (leave commented). TODO: consider Kustomize's env var substitution
815

916
# For telemetry functionality, change the following lines to match your configuration.
1017
secretGenerator:

kubernetes/cloud-k8s-monitoring/kustomization.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ resources:
44
- ../base/quickpizza
55
- ../base/alloy
66

7+
# To use a custom image (e.g., locally built), uncomment `newName` and `newTag` below.
8+
# Example: docker build -t local-quickpizza:latest . && minikube image load local-quickpizza:latest
9+
images:
10+
- name: ghcr.io/grafana/quickpizza-local
11+
# newName: local-quickpizza
12+
# newTag: latest
13+
# Note: Do not commit changes to newName/newTag values (leave commented). TODO: consider Kustomize's env var substitution
714

815
# For telemetry functionality, change the following lines to match your configuration.
916
secretGenerator:

kubernetes/cloud-otelcol/kustomization.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ resources:
22
- ../base/quickpizza
33
- ../base/alloy
44

5+
# To use a custom image (e.g., locally built), uncomment `newName` and `newTag` below.
6+
# Example: docker build -t local-quickpizza:latest . && minikube image load local-quickpizza:latest
7+
images:
8+
- name: ghcr.io/grafana/quickpizza-local
9+
# newName: local-quickpizza
10+
# newTag: latest
11+
# Note: Do not commit changes to newName/newTag values (leave commented). TODO: consider Kustomize's env var substitution
512

613
# For telemetry functionality, change the following lines to match your configuration.
714
secretGenerator:

kubernetes/cloud-telemetry/kustomization.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ resources:
22
- ../base/quickpizza
33
- ../base/alloy
44

5+
# To use a custom image (e.g., locally built), uncomment `newName` and `newTag` below.
6+
# Example: docker build -t local-quickpizza:latest . && minikube image load local-quickpizza:latest
7+
images:
8+
- name: ghcr.io/grafana/quickpizza-local
9+
# newName: local-quickpizza
10+
# newTag: latest
11+
# Note: Do not commit changes to newName/newTag values (leave commented). TODO: consider Kustomize's env var substitution
512

613
# For telemetry functionality, change the following lines to match your configuration.
714
secretGenerator:

kubernetes/local-telemetry/kustomization.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ resources:
55
- ../base/quickpizza
66
- ../base/alloy
77

8+
# To use a custom image (e.g., locally built), uncomment `newName` and `newTag` below.
9+
# Example: docker build -t local-quickpizza:latest . && minikube image load local-quickpizza:latest
10+
images:
11+
- name: ghcr.io/grafana/quickpizza-local
12+
# newName: local-quickpizza
13+
# newTag: latest
14+
15+
# Note: Do not commit changes to newName/newTag values (leave commented). TODO: consider Kustomize's env var substitution
816
# For telemetry functionality, change the following lines to match your configuration.
917
secretGenerator:
1018
- name: grafana-alloy-credentials

0 commit comments

Comments
 (0)