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. */ -}}
{{- 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 -}}
{{- $fluxSettings := merge (dig "flux" dict $vals) $.Values.flux -}}
apiVersion: helm.toolkit.fluxcd.io/v2beta1
......
{{- /* Used for creating values to use for Helm wrapper and package Helm charts. */ -}}
{{- 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 -}}
apiVersion: v1
kind: Secret
......
......@@ -57,11 +57,15 @@ The wrapper does not add anything additional to your deployment, unless you also
```yaml
packages:
podinfo:
enabled: true
wrapper:
enabled: true
git:
repo: https://github.com/stefanprodan/podinfo.git
tag: 6.3.4
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.
......@@ -69,7 +73,7 @@ With these values added you should have a very basic deployment of `podinfo` add
### 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
packages:
......@@ -102,6 +106,8 @@ packages:
repo: https://github.com/stefanprodan/podinfo.git
tag: 6.3.4
path: charts/podinfo
wrapper:
enabled: true
istio:
hosts:
- names:
......@@ -127,6 +133,8 @@ packages:
repo: https://github.com/stefanprodan/podinfo.git
tag: 6.3.4
path: charts/podinfo
wrapper:
enabled: true
monitor:
services:
- spec:
......@@ -149,6 +157,8 @@ packages:
repo: https://github.com/stefanprodan/podinfo.git
tag: 6.3.4
path: charts/podinfo
wrapper:
enabled: true
network:
allowControlPlaneEgress: true
```
......@@ -168,6 +178,8 @@ packages:
repo: https://github.com/stefanprodan/podinfo.git
tag: 6.3.4
path: charts/podinfo
wrapper:
enabled: true
configMaps:
- name: config
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