Skip to content

Commit

Permalink
support for imagepullsecret
Browse files Browse the repository at this point in the history
  • Loading branch information
gniltaws committed Nov 19, 2024
1 parent 97252e8 commit 070be81
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/operators-installer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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: 3.0.1
version: 3.1.0

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

Expand Down
1 change: 1 addition & 0 deletions charts/operators-installer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ For all of the Subscription parameters see
| operatorGroups[].targetOwnNamespace | `false` | No | If `true` add the OperatorGroup's Namespace as a `targetNamespaces`. If `true` then OperatorGroup will only work for Operators using `OwnNamespace` or `MultiNamespace` `installModes`. If blank and no `otherTargetNamespaces` specified then OperatorGroup will be configured to allow for operators using `installModes` `AllNamespaces`.
| operatorGroups[].otherTargetNamespaces | `[]` | No | List of additional Namespaces to target. If specified OperatorGroup will only work for operators using `SingleNamespace` or `MultiNamespace` `installModes` depending on value of `targetOwnNamespace`.
| installPlanApproverAndVerifyJobsImage | `registry.redhat.io/openshift4/ose-cli:v4.10` | Yes | Image to use for the InstallPlan Approver and Verify Jobs
| installPlanApproverAndVerifyJobsImagePullSecret | `''` | No | Name of existing secret for pulling `installPlanApproverAndVerifyJobsImage` from a private registry
| approveManualInstallPlanViaHook | `true` | No | `true` to create (and clean up) manual InstallPlan approval resources as part of post-install,post-upgrade helm hook<br>`false` to create manual InstallPlan approval resources as part of normal install<br><br>The hook method is nice to not have lingering resources needed for the manual InstallPlan approval but has the downside that no CustomResources using CustomResourceDefinitions installed by the operator can be used in the same chart because the operator InstallPlan wont be approved, and therefor the operator wont be installed, until the post-install,post-upgrade phase which means you will never get to that phase because your CustomResources wont be able to apply because the Operator isn't installed.<br><br>This is is ultimately a trade off between cleaning up these resources or being able to install and configure the operator in the same helm chart that has a dependency on this helm chart.
| installRequiredPythonLibraries | `true` | No | If `true`, install the required Python libraries (openshift-client, semver==2.13.0) dynamically from the given `pythonIndexURL` and `pythonExtraIndexURL` into the `installPlanApproverAndVerifyJobsImage` at run time
| pythonIndexURL | https://pypi.org/simple/ | No | If `installRequiredPythonLibraries` is `true` then use this python index to pull required libraries
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spec:
containers:
- name: installplan-approver
image: {{ $.Values.installPlanApproverAndVerifyJobsImage }}
{{- if $.Values.installPlanApproverAndVerifyJobsImagePullSecret }}
imagePullSecrets:
- {{ $.Values. installPlanApproverAndVerifyJobsImagePullSecret }}
{{- end }}
command: ["/bin/sh","-c"]
args:
- >-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ spec:
containers:
- name: installplan-complete-verifier
image: {{ $.Values.installPlanApproverAndVerifyJobsImage }}
{{- if $.Values.installPlanApproverAndVerifyJobsImagePullSecret }}
imagePullSecrets:
- {{ $.Values. installPlanApproverAndVerifyJobsImagePullSecret }}
{{- end }}
command: ["/bin/sh","-c"]
args:
- >-
Expand Down
5 changes: 5 additions & 0 deletions charts/operators-installer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ approveManualInstallPlanViaHook: true
# Image to use for the InstallPlan Approver and Verify Jobs
installPlanApproverAndVerifyJobsImage: registry.redhat.io/openshift4/ose-cli:v4.15@sha256:3f2123f42ae7358e1fece41d461bf331f144480da8b7711b9a93aca150f33f3f

# If specified, this imagePullSecret will be used for pulling the `installPlanApproverAndVerifyJobsImage`.
# Only needed when using a custom image and pulling from a private registry.
# Accepts a single string which is the name of an existing secret. (This chart does not create or manage the secret.)
installPlanApproverAndVerifyJobsImagePullSecret:

# If `true`, install the required Python libraries (openshift-client, semver==2.13.0) dynamically
# from the given `pythonIndexURL` and `pythonExtraIndexURL` into the `installPlanApproverAndVerifyJobsImage` at run time
#
Expand Down

0 comments on commit 070be81

Please sign in to comment.