mirror of https://github.com/helm/helm
commit
3fdb7cac01
@ -0,0 +1,16 @@
|
||||
# Three Level Dependent Chart
|
||||
|
||||
This chart is for testing the processing of multi-level dependencies.
|
||||
|
||||
Consists of the following charts:
|
||||
|
||||
- Library Chart
|
||||
- App Chart (Uses Library Chart as dependecy, 2x: app1/app2)
|
||||
- Umbrella Chart (Has all the app charts as dependencies)
|
||||
|
||||
The precendence is as follows: `library < app < umbrella`
|
||||
|
||||
Catches two use-cases:
|
||||
|
||||
- app overwriting library (app2)
|
||||
- umbrella overwriting app and library (app1)
|
@ -0,0 +1,13 @@
|
||||
apiVersion: v2
|
||||
name: umbrella
|
||||
description: A Helm chart for Kubernetes
|
||||
type: application
|
||||
version: 0.1.0
|
||||
|
||||
dependencies:
|
||||
- name: app1
|
||||
version: 0.1.0
|
||||
condition: app1.enabled
|
||||
- name: app2
|
||||
version: 0.1.0
|
||||
condition: app2.enabled
|
@ -0,0 +1,11 @@
|
||||
apiVersion: v2
|
||||
name: app1
|
||||
description: A Helm chart for Kubernetes
|
||||
type: application
|
||||
version: 0.1.0
|
||||
|
||||
dependencies:
|
||||
- name: library
|
||||
version: 0.1.0
|
||||
import-values:
|
||||
- defaults
|
@ -0,0 +1,5 @@
|
||||
apiVersion: v2
|
||||
name: library
|
||||
description: A Helm chart for Kubernetes
|
||||
type: library
|
||||
version: 0.1.0
|
@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- port: {{ .Values.service.port }}
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
name: http
|
@ -0,0 +1,5 @@
|
||||
exports:
|
||||
defaults:
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 9090
|
@ -0,0 +1 @@
|
||||
{{- include "library.service" . }}
|
@ -0,0 +1,3 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 1234
|
@ -0,0 +1,11 @@
|
||||
apiVersion: v2
|
||||
name: app2
|
||||
description: A Helm chart for Kubernetes
|
||||
type: application
|
||||
version: 0.1.0
|
||||
|
||||
dependencies:
|
||||
- name: library
|
||||
version: 0.1.0
|
||||
import-values:
|
||||
- defaults
|
@ -0,0 +1,5 @@
|
||||
apiVersion: v2
|
||||
name: library
|
||||
description: A Helm chart for Kubernetes
|
||||
type: library
|
||||
version: 0.1.0
|
@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- port: {{ .Values.service.port }}
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
name: http
|
@ -0,0 +1,5 @@
|
||||
exports:
|
||||
defaults:
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 9090
|
@ -0,0 +1 @@
|
||||
{{- include "library.service" . }}
|
@ -0,0 +1,3 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 8080
|
@ -0,0 +1,8 @@
|
||||
app1:
|
||||
enabled: true
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 3456
|
||||
|
||||
app2:
|
||||
enabled: true
|
Loading…
Reference in new issue