Skip to content

Commit

Permalink
Remove image setting when not needed (#1323)
Browse files Browse the repository at this point in the history
* Remove image setting when not needed

* version bump

* Add comment
  • Loading branch information
jaronoff97 authored Aug 29, 2024
1 parent 303f89f commit b39f601
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 29 deletions.
2 changes: 1 addition & 1 deletion charts/opentelemetry-kube-stack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-kube-stack
version: 0.2.0
version: 0.2.1
description: |
OpenTelemetry Quickstart chart for Kubernetes.
Installs an operator and collector for an easy way to get started with Kubernetes observability.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: OpAMPBridge
metadata:
name: example
labels:
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
spec:
Expand All @@ -23,7 +23,7 @@ spec:
ReportsRemoteConfig: true
ReportsStatus: true
replicas: 1
image: "ghcr.io/open-telemetry/opentelemetry-operator/operator-opamp-bridge:0.103.0"
image: "ghcr.io/open-telemetry/opentelemetry-operator/operator-opamp-bridge:0.107.0"
upgradeStrategy: automatic
securityContext:
runAsNonRoot: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: example-cluster-stats
namespace: default
labels:
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
opentelemetry.io/opamp-reporting: "true"
Expand Down Expand Up @@ -132,7 +132,6 @@ spec:
receivers:
- k8s_cluster
replicas: 1
image: "otel/opentelemetry-collector-k8s:0.103.1"
imagePullPolicy: IfNotPresent
upgradeStrategy: automatic
hostNetwork: false
Expand Down Expand Up @@ -189,7 +188,7 @@ metadata:
name: example-daemon
namespace: default
labels:
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
opentelemetry.io/opamp-reporting: "true"
Expand Down Expand Up @@ -586,7 +585,6 @@ spec:
- batch
receivers:
- otlp
image: "otel/opentelemetry-collector-k8s:0.103.1"
imagePullPolicy: IfNotPresent
upgradeStrategy: automatic
hostNetwork: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ spec:
- -c
- |
kubectl delete instrumentations,opampbridges,opentelemetrycollectors \
-l helm.sh/chart=opentelemetry-kube-stack-0.2.0
-l helm.sh/chart=opentelemetry-kube-stack-0.2.1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Instrumentation
metadata:
name: example
labels:
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: example-daemon
namespace: default
labels:
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
spec:
Expand Down Expand Up @@ -290,7 +290,6 @@ spec:
- batch
receivers:
- otlp
image: "otel/opentelemetry-collector-k8s:0.103.1"
imagePullPolicy: IfNotPresent
upgradeStrategy: automatic
hostNetwork: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
namespace: default
labels:
app: opentelemetry-kube-stack-apiserver
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
app: opentelemetry-kube-stack-kube-controller-manager
jobLabel: kube-controller-manager
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
namespace: kube-system
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
namespace: default
labels:
app: opentelemetry-kube-stack-kube-controller-manager
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
app: opentelemetry-kube-stack-kube-dns
jobLabel: kube-dns
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
namespace: kube-system
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
namespace: default
labels:
app: opentelemetry-kube-stack-kube-dns
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
app: opentelemetry-kube-stack-kube-etcd
jobLabel: kube-etcd
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
namespace: kube-system
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
namespace: default
labels:
app: opentelemetry-kube-stack-kube-etcd
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
app: opentelemetry-kube-stack-kube-proxy
jobLabel: kube-proxy
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
namespace: kube-system
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
namespace: default
labels:
app: opentelemetry-kube-stack-kube-proxy
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
labels:
app: opentelemetry-kube-stack-kube-scheduler
jobLabel: kube-scheduler
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
namespace: kube-system
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
namespace: default
labels:
app: opentelemetry-kube-stack-kube-scheduler
helm.sh/chart: opentelemetry-kube-stack-0.2.0
helm.sh/chart: opentelemetry-kube-stack-0.2.1
app.kubernetes.io/version: "0.107.0"
app.kubernetes.io/managed-by: Helm
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ spec:
- -c
- |
kubectl delete instrumentations,opampbridges,opentelemetrycollectors \
-l helm.sh/chart=opentelemetry-kube-stack-0.2.0
-l helm.sh/chart=opentelemetry-kube-stack-0.2.1
4 changes: 2 additions & 2 deletions charts/opentelemetry-kube-stack/templates/collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ spec:
{{- end }}
{{- if $collector.image.digest }}
image: "{{ $collector.image.repository }}@{{ $collector.image.digest }}"
{{- else }}
image: "{{ $collector.image.repository }}:{{ $collector.image.tag | default $.Chart.AppVersion }}"
{{- else if $collector.image.tag }}
image: "{{ $collector.image.repository }}:{{ $collector.image.tag }}"
{{- end }}
imagePullPolicy: {{ $collector.image.pullPolicy }}
upgradeStrategy: {{ $collector.upgradeStrategy }}
Expand Down
8 changes: 4 additions & 4 deletions charts/opentelemetry-kube-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ defaultCRConfig:
# If you want to use the core image `otel/opentelemetry-collector`, you also need to change `command.name` value to `otelcol`.
repository: otel/opentelemetry-collector-k8s
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "0.103.1"
# By default, the version set for the collector will match the version of the operator being run.
tag: ""
# When digest is set to a non-empty value, images will be pulled by digest (regardless of tag value).
digest: ""

Expand Down Expand Up @@ -818,8 +818,8 @@ opAMPBridge:
image:
repository: ghcr.io/open-telemetry/opentelemetry-operator/operator-opamp-bridge
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "0.103.0"
# By default, the version set for the bridge will match the version of the operator being run.
tag: ""
# When digest is set to a non-empty value, images will be pulled by digest (regardless of tag value).
digest: ""

Expand Down

0 comments on commit b39f601

Please sign in to comment.