Skip to content

Commit

Permalink
Use unique subnet name for OCP 4.16 machinesets
Browse files Browse the repository at this point in the history
This is required to work with 4.16 clusters. It was missed or not required for
some reason in the first attempt.

Signed-off-by: Gus Parvin <gparvin@redhat.com>
  • Loading branch information
gparvin authored and openshift-merge-bot[bot] committed Jun 21, 2024
1 parent b168624 commit 912c4e9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ spec:
filters:
- name: tag:Name
values:
- {{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").status.infrastructureName }}-private-{{ list (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").status.platformStatus.aws.region $zone | join "" }}
- '{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").status.infrastructureName }}-private-{{ list (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").status.platformStatus.aws.region $zone | join "" }}'
{{- if gt $ocpversion.Minor 15 }}
- '{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").status.infrastructureName }}-subnet-private-{{ list (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").status.platformStatus.aws.region $zone | join "" }}'
{{- end }}
tags:
- name: 'kubernetes.io/cluster/{{ (lookup "config.openshift.io/v1" "Infrastructure" "" "cluster").status.infrastructureName }}'
value: owned
Expand Down

0 comments on commit 912c4e9

Please sign in to comment.