Browse Source

feat(heqet): existingNamespace

dev
nold 1 year ago
parent
commit
37601687b3
  1. 4
      docs/appconfig.md
  2. 4
      templates/heqet-apps.yaml

4
docs/appconfig.md

@ -17,11 +17,11 @@ Here is a list of available configuration options inside the `apps` array.
| Parameter | Type | Default | Example | Description |
|-----------|--------|---------|---------|-------------|
| disabled | bool | false | `true` | Disable App |
| noCreateNamespace | bool | false | `true` | Don't create namespace for app |
| existingNamespace | string | none | `"default"` | Don't create namespace, instead use an existing one |
| namespace | string | .Values.name | `"superns"` | Name of application namespace |
| annotations | hash | | `my.anno.org/stuff: is-awesome` | Namespace annotations |
| syncWave | string | `"0"` | `"-2" | ArgoCD SyncWave |
| project | string | `"default"` | `"myproject"` | Name of ArgoCD Project |
| project | string | `"heqet"` | `"myproject"` | Name of ArgoCD Project |
| server | string | `"https://kubernetes.default.svc"` | `https://my.external.cluster:8443` | K8s Cluster to deploy to |
| prune | bool | `false` | `true` | ArgoCD automatic prune app |
| selfHeal | bool | `false` | `true` | ArgoCD automatic self-heal app |

4
templates/heqet-apps.yaml

@ -1,6 +1,6 @@
{{- range .Values.apps -}}
{{- if not .disabled }}
{{- if not .noCreateNamespace }}
{{- if not .existingNamespace }}
---
apiVersion: v1
kind: Namespace
@ -29,7 +29,7 @@ metadata:
spec:
project: {{ .project | default $.Values.defaults.project | default "heqet" }}
destination:
namespace: {{ .namespace | default .name | quote }}
namespace: {{ .namespace | default .existingNamespace | default .name | quote }}
server: {{ .server | default $.Values.defaults.server | default "https://kubernetes.default.svc" }}
source:
path: {{ .path | default "" | quote }}

Loading…
Cancel
Save