Skip to content

Commit fad4265

Browse files
committed
Cleanup labels on siteconfigs and manifests for ACM Scale Testing
1 parent cce4a81 commit fad4265

File tree

7 files changed

+26
-21
lines changed

7 files changed

+26
-21
lines changed

ansible/roles/hv-vm-manifests-compact/templates/manifest.yml.j2

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,13 @@ kind: ManagedCluster
108108
metadata:
109109
name: compact-{{ '%05d' | format(item) }}
110110
labels:
111+
common: 'true'
112+
common-mno: 'true'
113+
group-du-3node: ''
111114
name: compact-{{ '%05d' | format(item) }}
112-
vendor: OpenShift
113115
observability: disabled
114-
common: "true"
115-
group-du-3node: ""
116+
sites: compact-{{ '%05d' | format(item) }}
117+
vendor: OpenShift
116118
spec:
117119
hubAcceptsClient: true
118120
{% endif %}

ansible/roles/hv-vm-manifests-compact/templates/siteconfig.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ spec:
3434
common-mno: 'true'
3535
group-du-3node: ''
3636
name: compact-{{ '%05d' | format(item) }}
37-
sites: compact-{{ '%05d' | format(item) }}
38-
vendor: OpenShift
3937
{% if siteconfig_observability %}
4038
observability: enabled
4139
{% else %}
4240
observability: disabled
4341
{% endif %}
42+
sites: compact-{{ '%05d' | format(item) }}
43+
vendor: OpenShift
4444
clusterNetwork:
4545
- cidr: {{ "fd01::/48" if hostvars[groups['hv_vm'][((item - 1) * compact_cluster_node_count)]]['hv_ip'] | ansible.utils.ipv6 else "10.128.0.0/14" }}
4646
hostPrefix: {{ compact_cluster_network_host_prefix }}

ansible/roles/hv-vm-manifests-jumbo/templates/manifest.yml.j2

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,13 @@ kind: ManagedCluster
108108
metadata:
109109
name: jumbocluster00
110110
labels:
111+
# common: 'true'
112+
# common-mno: 'true'
113+
# group-du-standard: ''
111114
name: jumbocluster00
112-
vendor: OpenShift
113115
observability: disabled
114-
# common: "true"
115-
# group-du-sno: ""
116-
# group-sno-du: "true"
116+
sites: jumbocluster00
117+
vendor: OpenShift
117118
spec:
118119
hubAcceptsClient: true
119120
{% endif %}

ansible/roles/hv-vm-manifests-sno/templates/manifest.yml.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ kind: ManagedCluster
152152
metadata:
153153
name: {{ inventory_hostname }}
154154
labels:
155+
common: 'true'
156+
group-du-sno: ''
155157
name: {{ inventory_hostname }}
156-
vendor: OpenShift
157158
observability: disabled
158-
common: "true"
159-
group-du-sno: ""
160-
group-sno-du: "true"
159+
sites: {{ inventory_hostname }}
160+
vendor: OpenShift
161161
spec:
162162
hubAcceptsClient: true
163163
{% endif %}

ansible/roles/hv-vm-manifests-sno/templates/siteconfig.yml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ spec:
6969
{% endif %}
7070
clusterLabels:
7171
common: 'true'
72-
group-du-sno: ''
7372
{% if siteconfig_sno_du_profile in ["4.12", "4.13", "4.14", "4.15", "4.16"] %}
7473
du-profile: "{{ siteconfig_sno_du_profile }}"
7574
{% endif %}
75+
group-du-sno: ''
7676
name: {{ inventory_hostname }}
77-
sites: {{ inventory_hostname }}
78-
vendor: OpenShift
7977
{% if siteconfig_observability %}
8078
observability: enabled
8179
{% else %}
8280
observability: disabled
8381
{% endif %}
82+
sites: {{ inventory_hostname }}
83+
vendor: OpenShift
8484
clusterNetwork:
8585
- cidr: {{ "fd01::/48" if hostvars[inventory_hostname]['ip'] | ansible.utils.ipv6 else "10.128.0.0/14" }}
8686
hostPrefix: {{ sno_cluster_network_host_prefix }}

ansible/roles/hv-vm-manifests-standard/templates/manifest.yml.j2

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,17 @@ kind: ManagedCluster
108108
metadata:
109109
name: standard-{{ '%05d' | format(item) }}
110110
labels:
111+
common: 'true'
112+
common-mno: 'true'
113+
group-du-standard: ''
111114
name: standard-{{ '%05d' | format(item) }}
112-
vendor: OpenShift
113115
{% if manifest_observability %}
114116
observability: enabled
115117
{% else %}
116118
observability: disabled
117119
{% endif %}
118-
common: "true"
119-
group-du-standard: ""
120+
sites: standard-{{ '%05d' | format(item) }}
121+
vendor: OpenShift
120122
spec:
121123
hubAcceptsClient: true
122124
{% endif %}

ansible/roles/hv-vm-manifests-standard/templates/siteconfig.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ spec:
3434
common-mno: 'true'
3535
group-du-standard: ''
3636
name: standard-{{ '%05d' | format(item) }}
37-
sites: standard-{{ '%05d' | format(item) }}
38-
vendor: OpenShift
3937
{% if siteconfig_observability %}
4038
observability: enabled
4139
{% else %}
4240
observability: disabled
4341
{% endif %}
42+
sites: standard-{{ '%05d' | format(item) }}
43+
vendor: OpenShift
4444
clusterNetwork:
4545
- cidr: {{ "fd01::/48" if hostvars[groups['hv_vm'][((item - 1) * standard_cluster_node_count)]]['hv_ip'] | ansible.utils.ipv6 else "10.128.0.0/14" }}
4646
hostPrefix: {{ standard_cluster_network_host_prefix }}

0 commit comments

Comments
 (0)