From 5512818160a932a4f8a3b7426c4dbdbd733cc21c Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Thu, 26 Sep 2024 14:16:50 +0200 Subject: [PATCH] Drop hostedArgo support --- templates/policies/acm-hub-ca-policy.yaml | 2 -- templates/policies/application-policies.yaml | 2 -- templates/policies/private-repo-policies.yaml | 2 -- 3 files changed, 6 deletions(-) diff --git a/templates/policies/acm-hub-ca-policy.yaml b/templates/policies/acm-hub-ca-policy.yaml index 5759247..b5ac5d8 100644 --- a/templates/policies/acm-hub-ca-policy.yaml +++ b/templates/policies/acm-hub-ca-policy.yaml @@ -152,7 +152,6 @@ spec: {{- end }}{{/* if (eq (((.Values.global).secretStore).backend) "vault") */}} {{- range .Values.clusterGroup.managedClusterGroups }} {{- $group := . }} -{{- if not .hostedArgoSites }} --- apiVersion: policy.open-cluster-management.io/v1 kind: Policy @@ -221,6 +220,5 @@ spec: operator: NotIn values: - 'true' -{{- end }}{{/* if not .hostedArgoSites */}} {{- end }}{{/* range .Values.clusterGroup.managedClusterGroups */}} {{- end }}{{/* isHubCluster */}} diff --git a/templates/policies/application-policies.yaml b/templates/policies/application-policies.yaml index fd7c2a3..fe00d90 100644 --- a/templates/policies/application-policies.yaml +++ b/templates/policies/application-policies.yaml @@ -1,7 +1,6 @@ # TODO: Also create a GitOpsCluster.apps.open-cluster-management.io {{- range .Values.clusterGroup.managedClusterGroups }} {{- $group := . }} -{{- if not .hostedArgoSites }} apiVersion: policy.open-cluster-management.io/v1 kind: Policy metadata: @@ -176,4 +175,3 @@ spec: {{- end }} --- {{- end }} -{{- end }} diff --git a/templates/policies/private-repo-policies.yaml b/templates/policies/private-repo-policies.yaml index 0b7db0d..de340cc 100644 --- a/templates/policies/private-repo-policies.yaml +++ b/templates/policies/private-repo-policies.yaml @@ -78,7 +78,6 @@ spec: {{ end }}{{- /* if .Values.clusterGroup.isHubCluster */}} {{- range .Values.clusterGroup.managedClusterGroups }} {{- $group := . }} -{{- if not .hostedArgoSites }} apiVersion: policy.open-cluster-management.io/v1 kind: Policy metadata: @@ -156,6 +155,5 @@ spec: operator: NotIn values: - 'true' -{{- end }}{{- /* if not .hostedArgoSites */}} {{- end }}{{- /* range .Values.clusterGroup.managedClusterGroups */}} {{- end }}{{- /* if $.Values.global.privateRepo */}}