Skip to content

Commit

Permalink
enable customization (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronoff97 authored Jul 1, 2024
1 parent 0fb955e commit 0d56994
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 19 deletions.
2 changes: 1 addition & 1 deletion charts/opentelemetry-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-operator
version: 0.63.1
version: 0.63.2
description: OpenTelemetry Operator Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
annotations:
cert-manager.io/inject-ca-from: default/example-opentelemetry-operator-serving-cert
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -91,7 +91,7 @@ metadata:
annotations:
cert-manager.io/inject-ca-from: default/example-opentelemetry-operator-serving-cert
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -30,7 +30,7 @@ apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -223,7 +223,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -242,7 +242,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand All @@ -26,7 +26,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -32,7 +32,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: opentelemetry-operator
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: "example-opentelemetry-operator-cert-manager"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: "example-opentelemetry-operator-metrics"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down Expand Up @@ -44,7 +44,7 @@ metadata:
name: "example-opentelemetry-operator-webhook"
namespace: default
labels:
helm.sh/chart: opentelemetry-operator-0.63.1
helm.sh/chart: opentelemetry-operator-0.63.2
app.kubernetes.io/name: opentelemetry-operator
app.kubernetes.io/version: "0.102.0"
app.kubernetes.io/managed-by: Helm
Expand Down
6 changes: 6 additions & 0 deletions charts/opentelemetry-operator/templates/certmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ metadata:
name: {{ template "opentelemetry-operator.webhookCertName" . }}
namespace: {{ .Release.Namespace }}
spec:
{{- if .Values.admissionWebhooks.certManager.duration }}
duration: {{ .Values.admissionWebhooks.certManager.duration }}
{{- end }}
{{- if .Values.admissionWebhooks.certManager.renewBefore }}
renewBefore: {{ .Values.admissionWebhooks.certManager.renewBefore }}
{{- end }}
dnsNames:
- {{ template "opentelemetry-operator.fullname" . }}-webhook.{{ .Release.Namespace }}.svc
- {{ template "opentelemetry-operator.fullname" . }}-webhook.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
Expand Down
14 changes: 14 additions & 0 deletions charts/opentelemetry-operator/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1500,6 +1500,20 @@
"required": [],
"properties": {},
"examples": [{}]
},
"duration": {
"type": "string",
"default": "",
"title": "The duration for the Certificate",
"required": [],
"examples": ["2160h"]
},
"renewBefore": {
"type": "string",
"default": "",
"title": "The renewBefore time for the Certificate",
"required": [],
"examples": ["360h"]
}
},
"examples": [{
Expand Down
6 changes: 6 additions & 0 deletions charts/opentelemetry-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@ admissionWebhooks:
## Annotations for the cert and issuer if cert-manager is enabled.
certificateAnnotations: {}
issuerAnnotations: {}
# duration must be specified by a Go time.Duration (ending in s, m or h)
duration: ""
# renewBefore must be specified by a Go time.Duration (ending in s, m or h)
# Take care when setting the renewBefore field to be very close to the duration
# as this can lead to a renewal loop, where the Certificate is always in the renewal period.
renewBefore: ""

## TLS Certificate Option 2: Use Helm to automatically generate self-signed certificate.
## certManager must be disabled and autoGenerateCert must be enabled.
Expand Down

0 comments on commit 0d56994

Please sign in to comment.