-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[k8s-services chart] Add support for custom resources (#86)
- Loading branch information
Showing
11 changed files
with
299 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- /* | ||
If the operator configures the customResources input variable, then create custom resources based on the given | ||
definitions. If a list of definitions is provided, separate them using the YAML separator so they can all be executed | ||
from the same template file. | ||
*/ -}} | ||
|
||
{{- if .Values.customResources.enabled -}} | ||
{{- range $name, $value := .Values.customResources.resources }} | ||
--- | ||
{{ $value }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
customResources: | ||
enabled: true | ||
resources: | ||
custom_configmap: | | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: example | ||
data: | ||
key: value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
customResources: | ||
enabled: true | ||
resources: | ||
custom_configmap: | | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: example-config-map | ||
data: | ||
foo: bar | ||
custom_secret: | | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: example-secret | ||
type: Opaque | ||
data: | ||
secret_text: dmFsdWU= |
Oops, something went wrong.