UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 4ac37de2 authored by Jason Krause's avatar Jason Krause :8ball: Committed by joshwolf
Browse files

feat: Integrate Mattermost Operator into Big Bang as addon

parent cb39c4b4
No related branches found
No related tags found
1 merge request!255Resolve "Integrate Mattermost Operator with Big Bang Chart"
{{- if and (not .Values.offline) .Values.addons.mattermostoperator.enabled }}
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
name: mattermost-operator
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: mattermost-operator
app.kubernetes.io/component: "collaboration-tools"
{{- include "commonLabels" . | nindent 4}}
spec:
interval: {{ .Values.flux.interval }}
url: {{ .Values.addons.mattermostoperator.git.repo }}
ref:
{{- include "validRef" .Values.addons.mattermostoperator.git | nindent 4 }}
{{ include "gitIgnore" . }}
{{- include "gitCreds" . | nindent 2 }}
{{- end }}
{{- if .Values.addons.mattermostoperator.enabled }}
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: mattermost-operator
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: mattermost-operator
app.kubernetes.io/component: "collaboration-tools"
{{- include "commonLabels" . | nindent 4}}
spec:
targetNamespace: mattermost-operator
chart:
spec:
chart: {{ .Values.addons.mattermostoperator.git.path }}
interval: 5m
sourceRef:
kind: GitRepository
name: mattermost-operator
namespace: {{ .Release.Namespace }}
{{- with .Values.flux }}
interval: {{ .interval }}
test:
enable: false
install:
remediation:
retries: {{ .install.retries }}
upgrade:
remediation:
retries: {{ .upgrade.retries }}
remediateLastFailure: true
cleanupOnFail: true
rollback:
timeout: {{ .rollback.timeout }}
cleanupOnFail: {{ .rollback.cleanupOnFail }}
{{- end }}
valuesFrom:
- name: values
kind: Secret
valuesKey: "mattermostoperator.yaml"
values:
imagePullSecrets:
- name: private-registry
{{- end }}
{{- if .Values.addons.mattermostoperator.enabled }}
apiVersion: v1
kind: Namespace
metadata:
name: mattermost-operator
labels:
istio-injection: enabled
app.kubernetes.io/name: mattermost-operator
app.kubernetes.io/component: "collaboration-tools"
{{- include "commonLabels" . | nindent 4}}
{{- if ( include "imagePullSecret" . ) }}
---
apiVersion: v1
kind: Secret
metadata:
name: private-registry
namespace: mattermost-operator
labels:
app.kubernetes.io/name: mattermost-operator
app.kubernetes.io/component: "collaboration-tools"
{{- include "commonLabels" . | nindent 4}}
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ template "imagePullSecret" . }}
{{- end }}
{{- end }}
......@@ -59,4 +59,6 @@ stringData:
{{ toYaml .Values.addons.anchore.values | indent 4 }}
sonarqube.yaml: |
{{ toYaml .Values.addons.sonarqube.values | indent 4 }}
mattermostoperator.yaml: |
{{ toYaml .Values.addons.mattermostoperator.values | indent 4 }}
data:
......@@ -554,3 +554,18 @@ addons:
# -- Values to passthrough to the anchore chart: https://repo1.dso.mil/platform-one/big-bang/apps/security-tools/anchore-enterprise.git
values: {}
# ----------------------------------------------------------------------------------------------------------------------
# Mattermost Operator
#
mattermostoperator:
enabled: false
git:
repo: https://repo1.dso.mil/platform-one/big-bang/apps/collaboration-tools/mattermost-operator.git
path: "./chart"
tag: "1.12.0-bb.0"
# -- Values to passthrough to the mattermost operator chart: https://repo1.dso.mil/platform-one/big-bang/apps/collaboration-tools/mattermost-operator/-/blob/main/chart/values.yaml
values: {}
#
# ----------------------------------------------------------------------------------------------------------------------
#
\ No newline at end of file
......@@ -3,7 +3,7 @@
set -ex
## This is an array to instantiate the order of wait conditions
ORDERED_HELMRELEASES="gatekeeper istio-operator istio monitoring eck-operator ek fluent-bit twistlock cluster-auditor authservice argocd gitlab haproxy-sso gitlab-runner minio-operator minio anchore sonarqube"
ORDERED_HELMRELEASES="gatekeeper istio-operator istio monitoring eck-operator ek fluent-bit twistlock cluster-auditor authservice argocd gitlab haproxy-sso gitlab-runner minio-operator minio anchore sonarqube mattermost-operator"
## This the actual deployed helmrelease objects in the cluster
DEPLOYED_HELMRELEASES=$(kubectl get hr --no-headers -n bigbang | awk '{ print $1}')
......
......@@ -71,3 +71,5 @@ addons:
enabled: true
sonarqube:
enabled: true
mattermostoperator:
enabled: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment