mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-20 04:45:02 +00:00
(platform): add airgapped params
This commit is contained in:
@@ -17,11 +17,28 @@ releases:
|
||||
privileged: true
|
||||
dependsOn: []
|
||||
|
||||
- name: fluxcd-configure
|
||||
releaseName: fluxcd-configure
|
||||
chart: cozy-fluxcd-configure
|
||||
namespace: cozy-fluxcd
|
||||
dependsOn: [fluxcd-operator]
|
||||
|
||||
- name: fluxcd
|
||||
releaseName: fluxcd
|
||||
chart: cozy-fluxcd
|
||||
namespace: cozy-fluxcd
|
||||
dependsOn: [fluxcd-operator,cilium,kubeovn]
|
||||
dependsOn: [fluxcd-configure,cilium,kubeovn]
|
||||
valuesFrom:
|
||||
- kind: ConfigMap
|
||||
name: fluxcd-instance-values-override
|
||||
valuesKey: artifact
|
||||
targetPath: "flux-instance.instance.distribution.artifact"
|
||||
optional: true
|
||||
- kind: ConfigMap
|
||||
name: fluxcd-instance-values-override
|
||||
valuesKey: artifactPullSecret
|
||||
targetPath: "flux-instance.instance.distribution.artifactPullSecret"
|
||||
optional: true
|
||||
|
||||
- name: cilium
|
||||
releaseName: cilium
|
||||
|
||||
@@ -17,11 +17,21 @@ releases:
|
||||
privileged: true
|
||||
dependsOn: []
|
||||
|
||||
- name: fluxcd-configure
|
||||
releaseName: fluxcd-configure
|
||||
chart: cozy-fluxcd-configure
|
||||
namespace: cozy-fluxcd
|
||||
dependsOn: [fluxcd-operator]
|
||||
|
||||
- name: fluxcd
|
||||
releaseName: fluxcd
|
||||
chart: cozy-fluxcd
|
||||
namespace: cozy-fluxcd
|
||||
dependsOn: [fluxcd-operator]
|
||||
dependsOn: [fluxcd-configure]
|
||||
valuesFrom:
|
||||
- kind: ConfigMap
|
||||
name: fluxcd-instance-values
|
||||
valuesKey: values.yaml
|
||||
|
||||
- name: cert-manager-crds
|
||||
releaseName: cert-manager-crds
|
||||
|
||||
3
packages/system/fluxcd-configure/.helmignore
Normal file
3
packages/system/fluxcd-configure/.helmignore
Normal file
@@ -0,0 +1,3 @@
|
||||
images
|
||||
hack
|
||||
.gitkeep
|
||||
3
packages/system/fluxcd-configure/Chart.yaml
Normal file
3
packages/system/fluxcd-configure/Chart.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
apiVersion: v2
|
||||
name: cozy-fluxcd-configure
|
||||
version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process
|
||||
18
packages/system/fluxcd-configure/templates/configmap.yaml
Normal file
18
packages/system/fluxcd-configure/templates/configmap.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
{{- $fluxcdAirgapped := lookup "v1" "ConfigMap" "cozy-system" "cozy-airgapped" }}
|
||||
{{- $artifact := "" }}
|
||||
{{- $artifactPullSecret := "" }}
|
||||
{{- if $fluxcdAirgapped }}
|
||||
{{- $artifact = index $fluxcdAirgapped.data "artifact" | default "" }}
|
||||
{{- $artifactPullSecret = index $fluxcdAirgapped.data "artifactPullSecret" | default "" }}
|
||||
{{- end }}
|
||||
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: fluxcd-instance-values-override
|
||||
namespace: cozy-fluxcd
|
||||
data:
|
||||
{{- if $artifact }}
|
||||
artifact: {{ $artifact | quote }}
|
||||
{{- end }}
|
||||
artifactPullSecret: {{ $artifactPullSecret | quote }}
|
||||
0
packages/system/fluxcd-configure/values.yaml
Normal file
0
packages/system/fluxcd-configure/values.yaml
Normal file
Reference in New Issue
Block a user