add end-user/labels.md (#1505)

This commit is contained in:
yangsoon
2021-04-16 13:58:42 +08:00
committed by GitHub
parent f9f2c3b119
commit 3be63bba91
7 changed files with 161 additions and 3 deletions
+8
View File
@@ -0,0 +1,8 @@
patch: {
spec: template: metadata: annotations: {
for k, v in parameter {
"\(k)": v
}
}
}
parameter: [string]: string
+8
View File
@@ -0,0 +1,8 @@
patch: {
spec: template: metadata: labels: {
for k, v in parameter {
"\(k)": v
}
}
}
parameter: [string]: string
@@ -0,0 +1,14 @@
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
annotations:
definition.oam.dev/description: "Add annotations for your Workload."
name: annotations
namespace: {{.Values.systemDefinitionNamespace}}
spec:
appliesToWorkloads:
- webservice
- worker
schematic:
cue:
template: |-
@@ -0,0 +1,14 @@
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
annotations:
definition.oam.dev/description: "Add labels for your Workload."
name: labels
namespace: {{.Values.systemDefinitionNamespace}}
spec:
appliesToWorkloads:
- webservice
- worker
schematic:
cue:
template: |-