Skip to content

Commit 14a4238

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 243653a + 2439f2e commit 14a4238

10 files changed

Lines changed: 40 additions & 6 deletions

charts/rhai-on-xks-chart/api-docs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Red Hat OpenShift AI Operator Helm chart (non-OLM installation)
3737
| coreweave.kubernetesEngine.spec.dependencies.sailOperator.configuration | object | `{}` | |
3838
| coreweave.kubernetesEngine.spec.dependencies.sailOperator.managementPolicy | string | `"Managed"` | |
3939
| enabled | bool | `true` | |
40+
| hooks.postInstallCrs.enabled | bool | `true` | |
41+
| hooks.postInstallCrs.image | string | `"registry.redhat.io/openshift4/ose-cli-rhel9@sha256:dcb3f93d34aa0fdab33eb37949adfaa8fdd11ff3479363bb7735c5ba3eb345ce"` | |
4042
| imagePullSecret.dependencyNamespaces[0] | string | `"cert-manager-operator"` | |
4143
| imagePullSecret.dependencyNamespaces[1] | string | `"cert-manager"` | |
4244
| imagePullSecret.dependencyNamespaces[2] | string | `"openshift-lws-operator"` | |

charts/rhai-on-xks-chart/templates/hooks/post-install-crs-job.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{- if .Values.enabled }}
2+
{{- if .Values.hooks.postInstallCrs.enabled }}
23
{{- $createKserve := .Values.components.kserve.enabled }}
34
{{- $createAzureKE := and .Values.azure.enabled .Values.azure.kubernetesEngine.enabled }}
45
{{- $createCoreweaveKE := and .Values.coreweave.enabled .Values.coreweave.kubernetesEngine.enabled }}
@@ -30,7 +31,7 @@ spec:
3031
type: RuntimeDefault
3132
containers:
3233
- name: create-crs
33-
image: registry.redhat.io/openshift4/ose-cli-rhel9:v4.21.0
34+
image: {{ required "hooks.postInstallCrs.image is required" .Values.hooks.postInstallCrs.image | quote }}
3435
resources:
3536
limits:
3637
cpu: 200m
@@ -104,3 +105,4 @@ spec:
104105
echo "Done."
105106
{{- end }}
106107
{{- end }}
108+
{{- end }}

charts/rhai-on-xks-chart/templates/hooks/post-install-crs-rbac.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{- if .Values.enabled }}
2+
{{- if .Values.hooks.postInstallCrs.enabled }}
23
{{- $createKserve := .Values.components.kserve.enabled }}
34
{{- $createAzureKE := and .Values.azure.enabled .Values.azure.kubernetesEngine.enabled }}
45
{{- $createCoreweaveKE := and .Values.coreweave.enabled .Values.coreweave.kubernetesEngine.enabled }}
@@ -66,3 +67,4 @@ subjects:
6667
namespace: {{ .Release.Namespace }}
6768
{{- end }}
6869
{{- end }}
70+
{{- end }}

charts/rhai-on-xks-chart/test/snapshots/azure-with-pull-secret.snap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2858,7 +2858,7 @@ spec:
28582858
type: RuntimeDefault
28592859
containers:
28602860
- name: create-crs
2861-
image: registry.redhat.io/openshift4/ose-cli-rhel9:v4.21.0
2861+
image: "registry.redhat.io/openshift4/ose-cli-rhel9@sha256:dcb3f93d34aa0fdab33eb37949adfaa8fdd11ff3479363bb7735c5ba3eb345ce"
28622862
resources:
28632863
limits:
28642864
cpu: 200m

charts/rhai-on-xks-chart/test/snapshots/azure-with-related-images.snap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2722,7 +2722,7 @@ spec:
27222722
type: RuntimeDefault
27232723
containers:
27242724
- name: create-crs
2725-
image: registry.redhat.io/openshift4/ose-cli-rhel9:v4.21.0
2725+
image: "registry.redhat.io/openshift4/ose-cli-rhel9@sha256:dcb3f93d34aa0fdab33eb37949adfaa8fdd11ff3479363bb7735c5ba3eb345ce"
27262726
resources:
27272727
limits:
27282728
cpu: 200m

charts/rhai-on-xks-chart/test/snapshots/coreweave-with-pull-secret.snap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2858,7 +2858,7 @@ spec:
28582858
type: RuntimeDefault
28592859
containers:
28602860
- name: create-crs
2861-
image: registry.redhat.io/openshift4/ose-cli-rhel9:v4.21.0
2861+
image: "registry.redhat.io/openshift4/ose-cli-rhel9@sha256:dcb3f93d34aa0fdab33eb37949adfaa8fdd11ff3479363bb7735c5ba3eb345ce"
28622862
resources:
28632863
limits:
28642864
cpu: 200m

charts/rhai-on-xks-chart/test/snapshots/coreweave.snap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2720,7 +2720,7 @@ spec:
27202720
type: RuntimeDefault
27212721
containers:
27222722
- name: create-crs
2723-
image: registry.redhat.io/openshift4/ose-cli-rhel9:v4.21.0
2723+
image: "registry.redhat.io/openshift4/ose-cli-rhel9@sha256:dcb3f93d34aa0fdab33eb37949adfaa8fdd11ff3479363bb7735c5ba3eb345ce"
27242724
resources:
27252725
limits:
27262726
cpu: 200m

charts/rhai-on-xks-chart/test/snapshots/with-custom-namespace.snap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2720,7 +2720,7 @@ spec:
27202720
type: RuntimeDefault
27212721
containers:
27222722
- name: create-crs
2723-
image: registry.redhat.io/openshift4/ose-cli-rhel9:v4.21.0
2723+
image: "registry.redhat.io/openshift4/ose-cli-rhel9@sha256:dcb3f93d34aa0fdab33eb37949adfaa8fdd11ff3479363bb7735c5ba3eb345ce"
27242724
resources:
27252725
limits:
27262726
cpu: 200m

charts/rhai-on-xks-chart/values.schema.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,29 @@
3737
"type": "string"
3838
}
3939
},
40+
"hooks": {
41+
"type": "object",
42+
"description": "Helm hooks configuration",
43+
"properties": {
44+
"postInstallCrs": {
45+
"type": "object",
46+
"description": "Post-install hook for creating CRs",
47+
"properties": {
48+
"enabled": {
49+
"type": "boolean",
50+
"description": "Enable post-install CR creation hook",
51+
"default": true
52+
},
53+
"image": {
54+
"type": "string",
55+
"description": "Container image used by the post-install hook job"
56+
}
57+
},
58+
"additionalProperties": false,
59+
"required": ["image"]
60+
}
61+
}
62+
},
4063
"components": {
4164
"type": "object",
4265
"description": "Components configuration",

charts/rhai-on-xks-chart/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ rhaiOperator:
2323
# - name: RELATED_IMAGE_ODH_KSERVE_CONTROLLER_IMAGE
2424
# value: quay.io/opendatahub/kserve-controller:latest
2525

26+
hooks:
27+
postInstallCrs:
28+
enabled: true
29+
image: registry.redhat.io/openshift4/ose-cli-rhel9@sha256:dcb3f93d34aa0fdab33eb37949adfaa8fdd11ff3479363bb7735c5ba3eb345ce
30+
2631
# Components configuration
2732
components:
2833
kserve:

0 commit comments

Comments
 (0)