mirror of https://github.com/helm/helm
When --wait=ordered is used with helm template, output manifests in resource-group DAG order with START/END delimiters per HIP-0025 spec. Unsequenced resources are output last without delimiters.pull/31992/head
parent
1a821763a7
commit
00542abacf
@ -0,0 +1,33 @@
|
||||
## START resource-group: databases
|
||||
---
|
||||
# Source: sequenced-chart/templates/aa-databases-configmap.yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: database-config
|
||||
annotations:
|
||||
helm.sh/resource-group: databases
|
||||
data:
|
||||
host: localhost
|
||||
## END resource-group: databases
|
||||
## START resource-group: app
|
||||
---
|
||||
# Source: sequenced-chart/templates/bb-app-configmap.yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: app-config
|
||||
annotations:
|
||||
helm.sh/resource-group: app
|
||||
helm.sh/depends-on/resource-groups: '["databases"]'
|
||||
data:
|
||||
db_host: localhost
|
||||
## END resource-group: app
|
||||
---
|
||||
# Source: sequenced-chart/templates/cc-unsequenced-configmap.yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: unsequenced-config
|
||||
data:
|
||||
key: value
|
||||
@ -0,0 +1,5 @@
|
||||
apiVersion: v2
|
||||
name: sequenced-chart
|
||||
description: A test chart with resource-group sequencing annotations
|
||||
type: application
|
||||
version: 0.1.0
|
||||
@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: database-config
|
||||
annotations:
|
||||
helm.sh/resource-group: databases
|
||||
data:
|
||||
host: localhost
|
||||
@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: app-config
|
||||
annotations:
|
||||
helm.sh/resource-group: app
|
||||
helm.sh/depends-on/resource-groups: '["databases"]'
|
||||
data:
|
||||
db_host: localhost
|
||||
@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: unsequenced-config
|
||||
data:
|
||||
key: value
|
||||
Loading…
Reference in new issue