Skip to content

Commit

Permalink
Merge pull request #373 from jtudelag/operators-install-improve
Browse files Browse the repository at this point in the history
Add spec.config to OLM Subscription objet
  • Loading branch information
ckavili authored Nov 5, 2023
2 parents 7ca29dc + da012e2 commit 6f246c0
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/operators-installer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.4.0
version: 2.4.1

home: https://github.com/redhat-cop/helm-charts

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
approveManualInstallPlanViaHook: true

installPlanApproverAndVerifyJobsImage: registry.redhat.io/openshift4/ose-cli:v4.12

operators:
- channel: gitops-1.10
installPlanApproval: Manual
name: openshift-gitops-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
csv: openshift-gitops-operator.v1.10.1
namespace: openshift-gitops-operator
config:
env:
- name: DISABLE_DEFAULT_ARGOCD_INSTANCE
value: "true"

operatorGroups:
- name: openshift-gitops-operator
createNamespace: openshift-gitops-operator
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ printf "%s-%s" .csv "-approver" | trunc -63 | trimAll "-" }}
name: {{ printf "%s-%s" .csv "approver" | trunc -63 | trimAll "-" }}
namespace: {{ .namespace | default $.Release.Namespace }}
labels:
{{- include "operators-installer.labels" $ | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ printf "%s-%s" .csv "-verifier" | trunc -63 | trimAll "-" }}
name: {{ printf "%s-%s" .csv "verifier" | trunc -63 | trimAll "-" }}
namespace: {{ .namespace | default $.Release.Namespace }}
labels:
{{- include "operators-installer.labels" $ | nindent 4 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/operators-installer/templates/Subscription.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ metadata:
argocd.argoproj.io/sync-wave: "-40"
spec:
channel: "{{ .channel }}"
{{- if .config }}
config:
{{ .config | toYaml | indent 4 | trim }}
{{- end }}
installPlanApproval: "{{ .installPlanApproval }}"
name: "{{ .name }}"
source: "{{ .source }}"
Expand Down
11 changes: 11 additions & 0 deletions charts/operators-installer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ operators:
# source: community-operators
# sourceNamespace: openshift-marketplace
# csv: external-secrets-operator.v0.8.2
# - channel: gitops-1.10
# installPlanApproval: Manual
# name: openshift-gitops-operator
# source: redhat-operators
# sourceNamespace: openshift-marketplace
# csv: openshift-gitops-operator.v1.10.1
# namespace: openshift-gitops-operator
# config:
# env:
# - name: DISABLE_DEFAULT_ARGOCD_INSTANCE
# value: "true"

# configuration for control of OperatorGroups
operatorGroups:
Expand Down

0 comments on commit 6f246c0

Please sign in to comment.