forked from kubernetes-sigs/kubebuilder
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(helm/v1alpha): add samples manifests
Add samples to the helm chart so that consumers and developers can decide if should provide good samples configurations and enable them for the chart be installed within
- Loading branch information
1 parent
40db2b8
commit 6ae680f
Showing
7 changed files
with
56 additions
and
0 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
10 changes: 10 additions & 0 deletions
10
testdata/project-v4-with-plugins/dist/chart/templates/samples/example.com_v1_wordpress.yaml
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 @@ | ||
{{- if .Values.samples.enable }} | ||
apiVersion: example.com.testproject.org/v1 | ||
kind: Wordpress | ||
metadata: | ||
labels: | ||
{{- include "chart.labels" . | nindent 4 }} | ||
name: wordpress-sample | ||
spec: | ||
# TODO(user): Add fields here | ||
{{- end -}} |
12 changes: 12 additions & 0 deletions
12
...ta/project-v4-with-plugins/dist/chart/templates/samples/example.com_v1alpha1_busybox.yaml
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 .Values.samples.enable }} | ||
apiVersion: example.com.testproject.org/v1alpha1 | ||
kind: Busybox | ||
metadata: | ||
labels: | ||
{{- include "chart.labels" . | nindent 4 }} | ||
name: busybox-sample | ||
spec: | ||
# TODO(user): edit the following value to ensure the number | ||
# of Pods/Instances your Operand must have on cluster | ||
size: 1 | ||
{{- end -}} |
15 changes: 15 additions & 0 deletions
15
.../project-v4-with-plugins/dist/chart/templates/samples/example.com_v1alpha1_memcached.yaml
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,15 @@ | ||
{{- if .Values.samples.enable }} | ||
apiVersion: example.com.testproject.org/v1alpha1 | ||
kind: Memcached | ||
metadata: | ||
labels: | ||
{{- include "chart.labels" . | nindent 4 }} | ||
name: memcached-sample | ||
spec: | ||
# TODO(user): edit the following value to ensure the number | ||
# of Pods/Instances your Operand must have on cluster | ||
size: 1 | ||
|
||
# TODO(user): edit the following value to ensure the container has the right port to be initialized | ||
containerPort: 11211 | ||
{{- end -}} |
10 changes: 10 additions & 0 deletions
10
testdata/project-v4-with-plugins/dist/chart/templates/samples/example.com_v2_wordpress.yaml
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 @@ | ||
{{- if .Values.samples.enable }} | ||
apiVersion: example.com.testproject.org/v2 | ||
kind: Wordpress | ||
metadata: | ||
labels: | ||
{{- include "chart.labels" . | nindent 4 }} | ||
name: wordpress-sample | ||
spec: | ||
# TODO(user): Add fields here | ||
{{- 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