added repo

This commit is contained in:
Your Name
2026-08-26 03:39:42 +05:30
parent 45c25a95af
commit b8575bb8b9
6889 changed files with 1217125 additions and 0 deletions
@@ -0,0 +1,42 @@
{{- if and .Values.admissionWebhooks.create .Values.admissionWebhooks.certManager.enabled }}
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "opentelemetry-operator.fullname" . }}-cert-manager"
namespace: {{ .Release.Namespace }}
labels:
{{- include "opentelemetry-operator.labels" . | nindent 4 }}
app.kubernetes.io/component: webhook
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: "{{ .Values.testFramework.image.repository }}:{{ .Values.testFramework.image.tag }}"
env:
- name: CERT_MANAGER_CLUSTERIP
value: "cert-manager-webhook"
- name: CERT_MANAGER_PORT
value: "443"
command:
- sh
- -c
# The following shell script tests if the cert-manager service is up. If the service is up, when we try
# to wget its exposed port, we will get an HTTP error 400.
- |
wget_output=$(wget -q "$CERT_MANAGER_CLUSTERIP:$CERT_MANAGER_PORT")
if wget_output=="wget: server returned error: HTTP/1.0 400 Bad Request"
then exit 0
else exit 1
fi
restartPolicy: Never
{{- with .Values.affinity }}
affinity: {{ toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations: {{ toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector: {{ toYaml . | nindent 4 }}
{{- end }}
{{- end }}
@@ -0,0 +1,84 @@
{{ if .Values.kubeRBACProxy.enabled }}
---
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "opentelemetry-operator.fullname" . }}-metrics"
namespace: {{ .Release.Namespace }}
labels:
{{- include "opentelemetry-operator.labels" . | nindent 4 }}
app.kubernetes.io/component: controller-manager
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: "{{ .Values.testFramework.image.repository }}:{{ .Values.testFramework.image.tag }}"
env:
- name: MANAGER_METRICS_SERVICE_CLUSTERIP
value: "{{ include "opentelemetry-operator.fullname" . }}"
- name: MANAGER_METRICS_SERVICE_PORT
value: "{{ .Values.kubeRBACProxy.ports.proxyPort }}"
command:
- sh
- -c
# The following shell script tests if the controller-manager-metrics-service is up.
# If the service is up, when we try to wget its exposed port, we will get an HTTP error 400.
- |
wget_output=$(wget -q "$MANAGER_METRICS_SERVICE_CLUSTERIP:$MANAGER_METRICS_SERVICE_PORT")
if wget_output=="wget: server returned error: HTTP/1.0 400 Bad Request"
then exit 0
else exit 1
fi
restartPolicy: Never
{{- with .Values.affinity }}
affinity: {{ toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations: {{ toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector: {{ toYaml . | nindent 4 }}
{{- end }}
{{- end }}
---
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "opentelemetry-operator.fullname" . }}-webhook"
namespace: {{ .Release.Namespace }}
labels:
{{- include "opentelemetry-operator.labels" . | nindent 4 }}
app.kubernetes.io/component: controller-manager
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: "{{ .Values.testFramework.image.repository }}:{{ .Values.testFramework.image.tag }}"
env:
- name: WEBHOOK_SERVICE_CLUSTERIP
value: "{{ include "opentelemetry-operator.fullname" . }}-webhook"
- name: WEBHOOK_SERVICE_PORT
value: "{{ .Values.admissionWebhooks.servicePort }}"
command:
- sh
- -c
# The following shell script tests if the webhook service is up. If the service is up, when we try
# to wget its exposed port, we will get an HTTP error 400.
- |
wget_output=$(wget -q "$WEBHOOK_SERVICE_CLUSTERIP:$WEBHOOK_SERVICE_PORT")
if wget_output=="wget: server returned error: HTTP/1.0 400 Bad Request"
then exit 0
else exit 1
fi
restartPolicy: Never
{{- with .Values.affinity }}
affinity: {{ toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations: {{ toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector: {{ toYaml . | nindent 4 }}
{{- end }}