Skip to content

Commit

Permalink
Merge pull request #28 from mhjacks/main
Browse files Browse the repository at this point in the history
Add localClusterDomain and fix two nits
  • Loading branch information
claudiol authored Jan 19, 2022
2 parents f00c01c + 6f61782 commit 675693e
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 50 deletions.
2 changes: 2 additions & 0 deletions acm/templates/policies/application-policies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ spec:
value: {{ coalesce .valuesDirectoryURL $.Values.global.valuesDirectoryURL }}
- name: global.hubClusterDomain
value: {{ $.Values.global.hubClusterDomain }}
- name: global.localClusterDomain
value: '{{`{{ (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain }}`}}'
{{- range .helmOverrides }}
- name: {{ .name }}
value: {{ .value | quote }}
Expand Down
2 changes: 1 addition & 1 deletion clustergroup/templates/applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
value: {{ $.Values.global.hubClusterDomain }}
{{- range .overrides }}
- name: {{ .name }}
value: {{ .value }}
value: {{ .value | quote }}
{{- if .forceString }}
forceString: true
{{- end }}
Expand Down
40 changes: 0 additions & 40 deletions clustergroup/templates/subsciptions.yaml

This file was deleted.

41 changes: 32 additions & 9 deletions clustergroup/templates/subscriptions.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,40 @@
{{- range .Values.clusterGroup.subscriptions }}
{{- $subs := . }}
{{- $installPlanValue := .installPlanApproval }}

{{- if $subs.namespaces }}
{{- range .namespaces }}
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: {{ .name }}
namespace: {{ default "openshift-operators" .namespace }}
name: {{ $subs.name }}
namespace: {{ default "openshift-operators" . }}
spec:
name: {{ .name }}
source: {{ default "redhat-operators" .source }}
sourceNamespace: {{ default "openshift-marketplace" .sourceNamespace }}
channel: {{ default "stable" .channel }}
installPlanApproval: {{ coalesce .installPlanApproval $.Values.global.options.installPlanApproval }}
name: {{ $subs.name }}
source: {{ default "redhat-operators" $subs.source }}
sourceNamespace: {{ default "openshift-marketplace" $subs.sourceNamespace }}
channel: {{ default "stable" $subs.channel }}
installPlanApproval: {{ coalesce $installPlanValue $.Values.global.options.installPlanApproval }}
{{- if $.Values.global.options.useCSV }}
startingCSV: {{ .csv }}
{{- end }}
startingCSV: {{ $subs.csv }}
{{- end }}
---
{{- end }}
{{- else }}
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: {{ $subs.name }}
namespace: {{ default "openshift-operators" $subs.namespace }}
spec:
name: {{ $subs.name }}
source: {{ default "redhat-operators" $subs.source }}
sourceNamespace: {{ default "openshift-marketplace" $subs.sourceNamespace }}
channel: {{ default "stable" $subs.channel }}
installPlanApproval: {{ coalesce $installPlanValue $.Values.global.options.installPlanApproval }}
{{- if $.Values.global.options.useCSV }}
startingCSV: {{ $subs.csv }}
{{- end }}
---
{{- end }}
{{- end }}

0 comments on commit 675693e

Please sign in to comment.