UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit f3e05b45 authored by Ernest Chuang's avatar Ernest Chuang :thinking: Committed by Micah Nagel
Browse files

Resolve "Change wrapper to an "opt-in" (off by default)"

parent 0b2da6d7
No related branches found
No related tags found
1 merge request!2573Resolve "Change wrapper to an "opt-in" (off by default)"
{{- /* Used for Helm chart deployment of Big Bang wrapper. One per package. */ -}} {{- /* Used for Helm chart deployment of Big Bang wrapper. One per package. */ -}}
{{- range $pkg, $vals := .Values.packages -}} {{- range $pkg, $vals := .Values.packages -}}
{{- if (dig "enabled" true $vals) -}} {{- if and (dig "enabled" true $vals) (dig "wrapper" "enabled" false $vals) -}}
{{- $pkg = include "resourceName" $pkg -}} {{- $pkg = include "resourceName" $pkg -}}
{{- $fluxSettings := merge (dig "flux" dict $vals) $.Values.flux -}} {{- $fluxSettings := merge (dig "flux" dict $vals) $.Values.flux -}}
apiVersion: helm.toolkit.fluxcd.io/v2beta1 apiVersion: helm.toolkit.fluxcd.io/v2beta1
......
{{- /* Used for creating values to use for Helm wrapper and package Helm charts. */ -}} {{- /* Used for creating values to use for Helm wrapper and package Helm charts. */ -}}
{{- range $pkg, $vals := .Values.packages -}} {{- range $pkg, $vals := .Values.packages -}}
{{- if (dig "enabled" true $vals) -}} {{- if and (dig "enabled" true $vals) (dig "wrapper" "enabled" false $vals) -}}
{{- $pkg = include "resourceName" $pkg -}} {{- $pkg = include "resourceName" $pkg -}}
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
......
...@@ -57,11 +57,15 @@ The wrapper does not add anything additional to your deployment, unless you also ...@@ -57,11 +57,15 @@ The wrapper does not add anything additional to your deployment, unless you also
```yaml ```yaml
packages: packages:
podinfo: podinfo:
enabled: true
wrapper:
enabled: true
git: git:
repo: https://github.com/stefanprodan/podinfo.git repo: https://github.com/stefanprodan/podinfo.git
tag: 6.3.4 tag: 6.3.4
path: charts/podinfo path: charts/podinfo
``` ```
NOTE: The wrapper is an opt-in feature. Without enabling the wrapper, the `packages` will default to deploying flux object for your chart, without any wrapper-added configuration.
The package also has OCI support for sourcing the artifacts; usage will be encouraged with the move to 2.0 and "first-class" support for `HelmRepository` resources. The package also has OCI support for sourcing the artifacts; usage will be encouraged with the move to 2.0 and "first-class" support for `HelmRepository` resources.
...@@ -69,7 +73,7 @@ With these values added you should have a very basic deployment of `podinfo` add ...@@ -69,7 +73,7 @@ With these values added you should have a very basic deployment of `podinfo` add
### Basic Overrides ### Basic Overrides
There are some basic ovveride values provides to modify your Helm chart installation. An example of these values is included below: There are some basic override values provided to modify your Helm chart installation. These do NOT require the `wrapper`. An example of these values is included below:
```yaml ```yaml
packages: packages:
...@@ -102,6 +106,8 @@ packages: ...@@ -102,6 +106,8 @@ packages:
repo: https://github.com/stefanprodan/podinfo.git repo: https://github.com/stefanprodan/podinfo.git
tag: 6.3.4 tag: 6.3.4
path: charts/podinfo path: charts/podinfo
wrapper:
enabled: true
istio: istio:
hosts: hosts:
- names: - names:
...@@ -127,6 +133,8 @@ packages: ...@@ -127,6 +133,8 @@ packages:
repo: https://github.com/stefanprodan/podinfo.git repo: https://github.com/stefanprodan/podinfo.git
tag: 6.3.4 tag: 6.3.4
path: charts/podinfo path: charts/podinfo
wrapper:
enabled: true
monitor: monitor:
services: services:
- spec: - spec:
...@@ -149,6 +157,8 @@ packages: ...@@ -149,6 +157,8 @@ packages:
repo: https://github.com/stefanprodan/podinfo.git repo: https://github.com/stefanprodan/podinfo.git
tag: 6.3.4 tag: 6.3.4
path: charts/podinfo path: charts/podinfo
wrapper:
enabled: true
network: network:
allowControlPlaneEgress: true allowControlPlaneEgress: true
``` ```
...@@ -168,6 +178,8 @@ packages: ...@@ -168,6 +178,8 @@ packages:
repo: https://github.com/stefanprodan/podinfo.git repo: https://github.com/stefanprodan/podinfo.git
tag: 6.3.4 tag: 6.3.4
path: charts/podinfo path: charts/podinfo
wrapper:
enabled: true
configMaps: configMaps:
- name: config - name: config
data: data:
......
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