Skip to content

Commit 4bd3d8b

Browse files
authored
use stack variables in prop labels and annotations eck topic (#3219)
1 parent 16bab42 commit 4bd3d8b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

deploy-manage/deploy/cloud-on-k8s/propagate-labels-annotations.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ products:
66
- id: cloud-kubernetes
77
---
88

9-
# Propagate Labels and Annotations [k8s-propagate-labels-annotations]
9+
# Propagate labels and annotations [k8s-propagate-labels-annotations]
1010

1111
Starting with version `3.1.0`, {{eck}} supports propagating labels and annotations from the parent resource to the child resources it creates. This can be used on all custom resources managed by ECK, such as {{eck_resources_list}}.
1212

1313
The example below demonstrates how to use this feature on a {{es}} cluster, however, as mentioned above, this can be also applied to any custom resource managed by {{eck}}.
1414

15-
```yaml
15+
```yaml subs=true
1616
apiVersion: elasticsearch.k8s.elastic.co/v1
1717
kind: Elasticsearch
1818
metadata:
@@ -29,7 +29,7 @@ metadata:
2929
my-label2: "my-label2-value"
3030
name: elasticsearch-sample
3131
spec:
32-
version: 9.1.0
32+
version: {{version.stack}}
3333
nodeSets:
3434
- name: default
3535
config:
@@ -60,7 +60,7 @@ service/elasticsearch-sample-es-transport ClusterIP None <no
6060

6161
It is possible to use `*` as a wildcard to propagate all labels and annotations from the parent resource to the child resources. For example:
6262

63-
```yaml
63+
```yaml subs=true
6464
apiVersion: elasticsearch.k8s.elastic.co/v1
6565
kind: Elasticsearch
6666
metadata:
@@ -70,7 +70,7 @@ metadata:
7070
eck.k8s.alpha.elastic.co/propagate-labels: "*"
7171
name: elasticsearch-sample
7272
spec:
73-
version: 9.1.0
73+
version: {{version.stack}}
7474
nodeSets:
7575
- name: default
7676
config:

0 commit comments

Comments
 (0)