Skip to content

Commit

Permalink
Infer the Operator version from the constants.
Browse files Browse the repository at this point in the history
Update Docker Images SHA from repo

Signed-off-by: pjuarezd <[email protected]>
  • Loading branch information
pjuarezd committed Oct 16, 2023
1 parent 0e08131 commit 435241c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ metadata:
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: unknown
repository: https://github.com/minio/operator
containerImage: quay.io/minio/operator:v5.0.10
containerImage: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
name: minio-operator.v5.0.10
namespace: minio-operator
spec:
Expand Down Expand Up @@ -562,7 +562,7 @@ spec:
- args:
- ui
- --certs-dir=/tmp/certs
image: quay.io/minio/operator:v5.0.10
image: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
imagePullPolicy: IfNotPresent
name: console
ports:
Expand All @@ -571,7 +571,6 @@ spec:
- containerPort: 9443
name: https
resources: {}
securityContext: {}
volumeMounts:
- mountPath: /tmp/certs
name: tls-certificates
Expand Down Expand Up @@ -637,15 +636,14 @@ spec:
value: "on"
- name: OPERATOR_STS_ENABLED
value: "off"
image: quay.io/minio/operator:v5.0.10
image: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
imagePullPolicy: IfNotPresent
name: minio-operator
resources:
requests:
cpu: 200m
ephemeral-storage: 500Mi
memory: 256Mi
securityContext: {}
volumeMounts:
- mountPath: /tmp/service-ca
name: openshift-service-ca
Expand Down Expand Up @@ -757,9 +755,9 @@ spec:
relatedImages:
- image: quay.io/minio/minio@sha256:7e697b900f60d68e9edd2e8fc0dccd158e98938d924298612c5bbd294f2a1e65
name: minio-7e697b900f60d68e9edd2e8fc0dccd158e98938d924298612c5bbd294f2a1e65-annotation
- image: minio/operator@sha256:170b154d2c61c5a6f9dfbe4137e78815102a99fb9ab3aa6baf68750647e6261a
- image: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
name: console
- image: minio/operator@sha256:170b154d2c61c5a6f9dfbe4137e78815102a99fb9ab3aa6baf68750647e6261a
- image: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
name: minio-operator
version: 5.0.10
replaces: minio-operator.v5.0.9
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ metadata:
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: unknown
repository: https://github.com/minio/operator
containerImage: quay.io/minio/operator:v5.0.10
containerImage: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
name: minio-operator.v5.0.10
namespace: minio-operator
spec:
Expand Down Expand Up @@ -562,7 +562,7 @@ spec:
- args:
- ui
- --certs-dir=/tmp/certs
image: quay.io/minio/operator:v5.0.10
image: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
imagePullPolicy: IfNotPresent
name: console
ports:
Expand All @@ -571,7 +571,6 @@ spec:
- containerPort: 9443
name: https
resources: {}
securityContext: {}
volumeMounts:
- mountPath: /tmp/certs
name: tls-certificates
Expand Down Expand Up @@ -637,15 +636,14 @@ spec:
value: "on"
- name: OPERATOR_STS_ENABLED
value: "off"
image: quay.io/minio/operator:v5.0.10
image: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
imagePullPolicy: IfNotPresent
name: minio-operator
resources:
requests:
cpu: 200m
ephemeral-storage: 500Mi
memory: 256Mi
securityContext: {}
volumeMounts:
- mountPath: /tmp/service-ca
name: openshift-service-ca
Expand Down Expand Up @@ -755,9 +753,9 @@ spec:
name: MinIO Inc
url: https://min.io
relatedImages:
- image: minio/operator@sha256:170b154d2c61c5a6f9dfbe4137e78815102a99fb9ab3aa6baf68750647e6261a
- image: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
name: console
- image: minio/operator@sha256:170b154d2c61c5a6f9dfbe4137e78815102a99fb9ab3aa6baf68750647e6261a
- image: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
name: minio-operator
- image: quay.io/minio/minio@sha256:7e697b900f60d68e9edd2e8fc0dccd158e98938d924298612c5bbd294f2a1e65
name: minio-7e697b900f60d68e9edd2e8fc0dccd158e98938d924298612c5bbd294f2a1e65-annotation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ metadata:
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: unknown
repository: https://github.com/minio/operator
containerImage: quay.io/minio/operator:v5.0.10
containerImage: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
name: minio-operator-rhmp.v5.0.10
namespace: minio-operator
spec:
Expand Down Expand Up @@ -564,7 +564,7 @@ spec:
- args:
- ui
- --certs-dir=/tmp/certs
image: quay.io/minio/operator:v5.0.10
image: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
imagePullPolicy: IfNotPresent
name: console
ports:
Expand All @@ -573,7 +573,6 @@ spec:
- containerPort: 9443
name: https
resources: {}
securityContext: {}
volumeMounts:
- mountPath: /tmp/certs
name: tls-certificates
Expand Down Expand Up @@ -639,15 +638,14 @@ spec:
value: "on"
- name: OPERATOR_STS_ENABLED
value: "off"
image: quay.io/minio/operator:v5.0.10
image: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
imagePullPolicy: IfNotPresent
name: minio-operator
resources:
requests:
cpu: 200m
ephemeral-storage: 500Mi
memory: 256Mi
securityContext: {}
volumeMounts:
- mountPath: /tmp/service-ca
name: openshift-service-ca
Expand Down Expand Up @@ -757,9 +755,9 @@ spec:
name: MinIO Inc
url: https://min.io
relatedImages:
- image: minio/operator@sha256:170b154d2c61c5a6f9dfbe4137e78815102a99fb9ab3aa6baf68750647e6261a
- image: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
name: console
- image: minio/operator@sha256:170b154d2c61c5a6f9dfbe4137e78815102a99fb9ab3aa6baf68750647e6261a
- image: quay.io/minio/operator@sha256:58c5114003fdc38877db2dc6ca45bc4b16572cc3e40c2fcc20702c5ccaa01caa
name: minio-operator
- image: quay.io/minio/minio@sha256:7e697b900f60d68e9edd2e8fc0dccd158e98938d924298612c5bbd294f2a1e65
name: minio-7e697b900f60d68e9edd2e8fc0dccd158e98938d924298612c5bbd294f2a1e65-annotation
Expand Down
1 change: 1 addition & 0 deletions olm-post-script.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

# get the minio version
RELEASE="$(sed -n 's/^.*DefaultOperatorImage = "minio\/operator:v\(.*\)"/\1/p' pkg/controller/operator.go)"
minioVersionInExample=$(kustomize build examples/kustomization/tenant-lite | yq eval-all '.spec.image' | tail -1)
echo "minioVersionInExample: ${minioVersionInExample}"

Expand Down

0 comments on commit 435241c

Please sign in to comment.