Skip to content

Commit 067ce51

Browse files
committed
Add 'extraResources' to the operator helm chart
1 parent bb1a944 commit 067ce51

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright 2018 Oracle Corporation and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
3+
4+
{{- define "operator.extraResources" }}
5+
{{- range $idx, $element := .extraResources }}
6+
---
7+
{{ toYaml $element }}
8+
{{- end }}
9+
{{- end }}

kubernetes/charts/weblogic-operator/templates/main.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@
1414
{{- if .Values.createOperator }}
1515
{{- include "operator.operator" $scope }}
1616
{{- end }}
17+
18+
{{- include "operator.extraResources" $scope }}

kubernetes/charts/weblogic-operator/values.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,22 @@ javaLoggingLevel: "INFO"
9191

9292
# elkIntegrationEnabled specifies whether or not ELK integration is enabled.
9393
elkIntegrationEnabled: false
94+
95+
# extraResources specifies an arbitrary list of extra Kubernetes resources that should be
96+
# created (and deleted) along with this chart. It provides an easy way for the
97+
# customer to attach extra Kubernetes resources to the lifecycle of this chart.
98+
#
99+
# Example: create an extra persistent volume and persistent claim when this chart is
100+
# installed, and remove them when this chart is deleted:
101+
#
102+
# extraResources:
103+
# - kind: PersistentVolume
104+
# apiVersion: v1
105+
# metadata: ...
106+
# spec: ...
107+
# - kind: PersistentVolumeClaim
108+
# apiVersion: v1
109+
# metadata: ...
110+
# spec: ...
111+
#
112+
extraResources: {}

0 commit comments

Comments
 (0)