diff --git a/Chart.yaml b/Chart.yaml index 79faefec..31f2275b 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -7,7 +7,3 @@ keywords: sources: - https://github.com/Onlineberatung/onlineBeratung-kubernetes.git type: application -dependencies: - - name: integritychecks - version: 0.0.1 - condition: integritychecks.enabled diff --git a/charts/integritychecks/Chart.yaml b/charts/integritychecks/Chart.yaml deleted file mode 100644 index cea8054b..00000000 --- a/charts/integritychecks/Chart.yaml +++ /dev/null @@ -1,6 +0,0 @@ -name: integritychecks -description: The chart checks the integrity on the cluster -version: 0.0.1 -apiVersion: v1 -keywords: - - integritychecks diff --git a/charts/integritychecks/templates/integritychecks-config.yaml b/charts/integritychecks/templates/integritychecks-config.yaml deleted file mode 100644 index 9a3ce552..00000000 --- a/charts/integritychecks/templates/integritychecks-config.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: integritychecks-{{ .Release.Name }}-config - namespace: {{ .Values.namespace | default "default" }} -data: - ACTIVE_CHECKS: {{ (join "," .Values.activeChecks) | quote }} - VERBOSITY: {{ .Values.verbosity | default 0 | quote }} - LOG_PATH: {{ .Values.logPath | default "" | quote }} - {{- range $path, $config := .Values.mysql -}} - {{- if ne $path "password" -}} - {{- (printf "MYSQL_%s" (upper $path)) | nindent 2 }}: {{ $config | quote -}} - {{- end }} - {{- end }} - {{- range $path, $config := .Values.mongodb -}} - {{- if ne $path "password" -}} - {{ printf "MONGODB_%s" (upper $path) | nindent 2 }}: {{ $config | quote -}} - {{- end -}} - {{- end -}} - {{- range $path, $config := .Values.keycloak -}} - {{- if ne $path "password" -}} - {{ printf "KEYCLOAK_%s" (upper $path) | nindent 2 }}: {{ $config | quote -}} - {{- end -}} - {{- end -}} - {{- range $path, $config := .Values.opensearch -}} - {{- if ne $path "password" -}} - {{ printf "OPENSEARCH_%s" (upper $path) | nindent 2 }}: {{ $config | quote -}} - {{- end -}} - {{- end -}} diff --git a/charts/integritychecks/templates/integritychecks-cronjob.yaml b/charts/integritychecks/templates/integritychecks-cronjob.yaml deleted file mode 100644 index 84e0435b..00000000 --- a/charts/integritychecks/templates/integritychecks-cronjob.yaml +++ /dev/null @@ -1,32 +0,0 @@ -{{- $namespace := .Values.namespace | default "default" }} -{{- $release_name := .Release.Name }} -{{- range $job := .Values.jobs -}} ---- -apiVersion: batch/v1 -kind: CronJob -metadata: - name: integritychecks-{{ $job.name }}-cronjob - namespace: {{ $namespace }} -spec: - schedule: {{ $job.schedule }} - jobTemplate: - spec: - backoffLimit: 0 - template: - metadata: - labels: - name: integritychecks-{{ $job.name }}-cronjob - spec: - containers: - - name: integritychecks-{{ $job.name }} - image: {{ $job.image }}:{{ $job.version }} - imagePullPolicy: Always - envFrom: - - configMapRef: - name: integritychecks-{{ $release_name }}-config - - secretRef: - name: integritychecks-{{ $release_name }}-secret - imagePullSecrets: - - name: registry-secret - restartPolicy: Never - {{- end -}} \ No newline at end of file diff --git a/charts/integritychecks/templates/integritychecks-secret.yaml b/charts/integritychecks/templates/integritychecks-secret.yaml deleted file mode 100644 index de782dfc..00000000 --- a/charts/integritychecks/templates/integritychecks-secret.yaml +++ /dev/null @@ -1,30 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: integritychecks-{{ .Release.Name }}-secret - namespace: {{ .Values.namespace | default "default" }} - labels: - app: app -type: Opaque -data: - TEAMS_WEBHOOK_URL: {{ .Values.teams.webhookUrl | default "" | b64enc | quote }} - {{- range $path, $config := .Values.mysql -}} - {{- if and $config (eq $path "password") -}} - {{- printf "MYSQL_%s" (upper $path) | nindent 2 }}: {{ $config | b64enc | quote -}} - {{- end -}} - {{- end -}} - {{- range $path, $config := .Values.mongodb -}} - {{- if and $config (eq $path "password") -}} - {{- printf "MONGODB_%s" (upper $path) | nindent 2 }}: {{ $config | b64enc | quote -}} - {{- end -}} - {{- end -}} - {{- range $path, $config := .Values.keycloak -}} - {{- if and $config (eq $path "password") -}} - {{- printf "KEYCLOAK_%s" (upper $path) | nindent 2 }}: {{ $config | b64enc | quote -}} - {{- end -}} - {{- end -}} - {{- range $path, $config := .Values.opensearch -}} - {{- if and $config (eq $path "password") -}} - {{- printf "OPENSEARCH_%s" (upper $path) | nindent 2 }}: {{ $config | b64enc | quote -}} - {{- end -}} - {{- end -}} diff --git a/charts/integritychecks/values.yaml b/charts/integritychecks/values.yaml deleted file mode 100644 index 2266bf92..00000000 --- a/charts/integritychecks/values.yaml +++ /dev/null @@ -1,39 +0,0 @@ -namespace: 'default' -verbosity: 0 -logPath: -jobs: [] -mysql: - user: 'root' - password: 'root' - host: 'mariadb.default' - port: 3306 - db: 'userservice' -mongodb: - user: 'admin' - password: 'admin' - host: 'mongodb.default' - port: 27017 - db: 'rocketchat' -keycloak: - host: 'keycloak.default' - path: '/auth' - user: 'admin' - password: 'admin' - protocol: 'http' - port: 80 - realm: 'online-beratung' - client: 'admin-cli' - grantType: 'password' -opensearch: - host: 'opensearch.default' - protocol: 'https' - port: 9200 - user: 'admin' - password: 'admin' - index_prefix: 'integrity' -teams: - webhookUrl: -activeChecks: - - 'RocketChatToLdapInconsistency' - - 'LdapToRocketChatInconsistency' - diff --git a/values.yaml b/values.yaml index 5e869d59..20236bfb 100644 --- a/values.yaml +++ b/values.yaml @@ -219,7 +219,3 @@ online-counseling-rabbitmq: migrationToolImageName: "ghcr.io/onlineberatung/onlineberatung-migrationtool/onlineberatung-migrationtool" migrationToolImageVersion: "dockerImage.v.3" migrationToolSpringProfile: "" - -# Integrity checks -integritychecks: - enabled: false