Skip to content

Commit

Permalink
Drop hostedArgo support
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaldessari committed Sep 26, 2024
1 parent 8abbe6d commit 5512818
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions templates/policies/acm-hub-ca-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -221,6 +220,5 @@ spec:
operator: NotIn
values:
- 'true'
{{- end }}{{/* if not .hostedArgoSites */}}
{{- end }}{{/* range .Values.clusterGroup.managedClusterGroups */}}
{{- end }}{{/* isHubCluster */}}
2 changes: 0 additions & 2 deletions templates/policies/application-policies.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -176,4 +175,3 @@ spec:
{{- end }}
---
{{- end }}
{{- end }}
2 changes: 0 additions & 2 deletions templates/policies/private-repo-policies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -156,6 +155,5 @@ spec:
operator: NotIn
values:
- 'true'
{{- end }}{{- /* if not .hostedArgoSites */}}
{{- end }}{{- /* range .Values.clusterGroup.managedClusterGroups */}}
{{- end }}{{- /* if $.Values.global.privateRepo */}}

0 comments on commit 5512818

Please sign in to comment.