UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 6290fbed authored by still's avatar still Committed by kevin.wilder
Browse files

feat: split minio into minio operator and minio and move to addons

parent 3c7898bd
No related branches found
No related tags found
1 merge request!288Minio Instance and Operator Helm cleanup, add VS, add customizable name for instance
Pipeline #178552 passed
{{- if and (not .Values.offline) .Values.minio.enabled }} {{- if and (not .Values.offline) .Values.addons.minioOperator.enabled }}
apiVersion: source.toolkit.fluxcd.io/v1beta1 apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository kind: GitRepository
metadata: metadata:
...@@ -6,9 +6,9 @@ metadata: ...@@ -6,9 +6,9 @@ metadata:
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
spec: spec:
interval: {{ .Values.flux.interval }} interval: {{ .Values.flux.interval }}
url: {{ .Values.minio.miniooperator.git.repo }} url: {{ .Values.addons.minioOperator.git.repo }}
ref: ref:
{{- include "validRef" .Values.minio.miniooperator.git | nindent 4 }} {{- include "validRef" .Values.addons.minioOperator.git | nindent 4 }}
{{ include "gitIgnore" . }} {{ include "gitIgnore" . }}
{{- include "gitCreds" . | nindent 2 }} {{- include "gitCreds" . | nindent 2 }}
{{- end }} {{- end }}
{{- if .Values.minio.enabled }} {{- if .Values.addons.minioOperator.enabled }}
apiVersion: helm.toolkit.fluxcd.io/v2beta1 apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
...@@ -8,7 +8,7 @@ spec: ...@@ -8,7 +8,7 @@ spec:
targetNamespace: minio-operator targetNamespace: minio-operator
chart: chart:
spec: spec:
chart: {{ .Values.minio.miniooperator.git.path }} chart: {{ .Values.addons.minioOperator.git.path }}
interval: 5m interval: 5m
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
......
{{- if .Values.minio.enabled }} {{- if .Values.addons.minioOperator.enabled }}
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: minio-operator name: minio-operator
labels: labels:
istio-injection: enabled istio-injection: enabled
app.kubernetes.io/name: minioOperator
app.kubernetes.io/component: "application-utilities"
{{- include "commonLabels" . | nindent 4}}
--- ---
{{- if ( include "imagePullSecret" . ) }} {{- if ( include "imagePullSecret" . ) }}
apiVersion: v1 apiVersion: v1
......
{{- if and (not .Values.offline) .Values.minio.enabled }} {{- if and (not .Values.offline) .Values.addons.minio.enabled }}
apiVersion: source.toolkit.fluxcd.io/v1beta1 apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository kind: GitRepository
metadata: metadata:
...@@ -6,9 +6,9 @@ metadata: ...@@ -6,9 +6,9 @@ metadata:
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
spec: spec:
interval: {{ .Values.flux.interval }} interval: {{ .Values.flux.interval }}
url: {{ .Values.minio.minioinstance.git.repo }} url: {{ .Values.addons.minio.git.repo }}
ref: ref:
{{- include "validRef" .Values.minio.minioinstance.git | nindent 4 }} {{- include "validRef" .Values.addons.minio.git | nindent 4 }}
{{ include "gitIgnore" . }} {{ include "gitIgnore" . }}
{{- include "gitCreds" . | nindent 2 }} {{- include "gitCreds" . | nindent 2 }}
{{- end }} {{- end }}
{{- if .Values.minio.enabled }} {{- if .Values.addons.minio.enabled }}
apiVersion: helm.toolkit.fluxcd.io/v2beta1 apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
...@@ -8,7 +8,7 @@ spec: ...@@ -8,7 +8,7 @@ spec:
targetNamespace: minio targetNamespace: minio
chart: chart:
spec: spec:
chart: {{ .Values.minio.minioinstance.git.path }} chart: {{ .Values.addons.minio.git.path }}
interval: 5m interval: 5m
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
...@@ -44,6 +44,13 @@ spec: ...@@ -44,6 +44,13 @@ spec:
traffic.sidecar.istio.io/excludeInboundPorts: "9443" traffic.sidecar.istio.io/excludeInboundPorts: "9443"
imagePullSecrets: imagePullSecrets:
- name: private-registry - name: private-registry
hostname: {{ .Values.hostname }}
istio:
enabled: {{ .Values.istio.enabled }}
virtualService:
enabled: {{ .Values.addons.minio.virtualService.enabled }}
name: {{ .Values.addons.minio.virtualService.name }}
nameOverride: {{ .Values.addons.minio.name }}
dependsOn: dependsOn:
- name: minio-operator - name: minio-operator
......
{{- if .Values.minio.enabled }} {{- if .Values.addons.minio.enabled }}
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: minio name: minio
labels: labels:
istio-injection: enabled istio-injection: enabled
app.kubernetes.io/name: minio
app.kubernetes.io/component: "application-utilities"
{{- include "commonLabels" . | nindent 4}}
--- ---
{{- if ( include "imagePullSecret" . ) }} {{- if ( include "imagePullSecret" . ) }}
apiVersion: v1 apiVersion: v1
......
...@@ -50,9 +50,9 @@ stringData: ...@@ -50,9 +50,9 @@ stringData:
clusterauditor.yaml: | clusterauditor.yaml: |
{{ toYaml .Values.twistlock.values | indent 4 }} {{ toYaml .Values.twistlock.values | indent 4 }}
miniooperator.yaml: | miniooperator.yaml: |
{{ toYaml .Values.minio.miniooperator.values | indent 4 }} {{ toYaml .Values.addons.minioOperator.values | indent 4 }}
minio.yaml: | minio.yaml: |
{{ toYaml .Values.minio.minioinstance.values | indent 4 }} {{ toYaml .Values.addons.minio.values | indent 4 }}
gitlab.yaml: | gitlab.yaml: |
{{ toYaml .Values.addons.gitlab.values | indent 4 }} {{ toYaml .Values.addons.gitlab.values | indent 4 }}
anchore.yaml: | anchore.yaml: |
......
...@@ -266,30 +266,6 @@ twistlock: ...@@ -266,30 +266,6 @@ twistlock:
# -- Values to passthrough to the twistlock chart: https://repo1.dso.mil/platform-one/big-bang/apps/security-tools/twistlock.git # -- Values to passthrough to the twistlock chart: https://repo1.dso.mil/platform-one/big-bang/apps/security-tools/twistlock.git
values: {} values: {}
# ----------------------------------------------------------------------------------------------------------------------
# Minio Operator and Instance
#
minio:
# -- Toggle deployment of minio operator and instance.
enabled: true
miniooperator:
git:
repo: https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio-operator.git
path: "./chart"
tag: "2.0.9-bb.1"
# -- Values to passthrough to the minio operator chart: https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio-operator.git
values: {}
minioinstance:
git:
repo: https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio.git
path: "./chart"
tag: "2.0.9-bb.1"
# -- Values to passthrough to the minio instance chart: https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio.git
values: {}
# #
# ---------------------------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------------------------
# #
...@@ -341,6 +317,37 @@ addons: ...@@ -341,6 +317,37 @@ addons:
# -- Additional authservice chain configurations. # -- Additional authservice chain configurations.
chains: {} chains: {}
# ----------------------------------------------------------------------------------------------------------------------
# Minio Operator and Instance
#
minioOperator:
# -- Toggle deployment of minio operator and instance.
enabled: false
git:
repo: https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio-operator.git
path: "./chart"
tag: "2.0.9-bb.2"
# -- Values to passthrough to the minio operator chart: https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio-operator.git
values: {}
minio:
enabled: false
git:
repo: https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio.git
path: "./chart"
tag: "2.0.9-bb.2"
# Provide a specific name for the minio instance.
name: minio
# Settings to enable/disable and name the minio virtual service for external access to the minio UI.
virtualService:
enabled: true
name: minio
# -- Values to passthrough to the minio instance chart: https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio.git
values: {}
gitlab: gitlab:
# -- Toggle deployment of Gitlab. # -- Toggle deployment of Gitlab.
enabled: false enabled: false
......
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