Skip to content

Commit

Permalink
update s2i image and other images sha
Browse files Browse the repository at this point in the history
Signed-off-by: Jeeva Kandasamy <[email protected]>
  • Loading branch information
jkandasa authored and tekton-robot committed Nov 2, 2023
1 parent 82886fc commit f501751
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
description: Reference of the image buildah will produce.
- name: BUILDER_IMAGE
description: The location of the buildah builder image.
default: registry.redhat.io/rhel8/buildah@sha256:87e828a84e18ff4858ee8ac9d26e202389e64e235247b54cec8bd0620d8f8f2c # 8.8-5
default: registry.redhat.io/rhel8/buildah@sha256:55f5c7d88c77e1ab5a2ab8e877172b2b66cb196e21f10dc45148470d0ee8bbae
- name: STORAGE_DRIVER
description: Set buildah storage driver
default: vfs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
params:
- name: BUILDER_IMAGE
description: The location of the buildah builder image.
default: registry.redhat.io/rhel8/buildah@sha256:99cae35f40c7ec050fed3765b2b27e0b8bbea2aa2da7c16408e2ca13c60ff8ee
default: registry.redhat.io/rhel8/buildah@sha256:55f5c7d88c77e1ab5a2ab8e877172b2b66cb196e21f10dc45148470d0ee8bbae
- name: VERSION
description: The tag of .NET imagestream for .NET version
default: 'latest'
Expand Down Expand Up @@ -54,7 +54,7 @@ spec:
optional: true
steps:
- name: generate
image: registry.redhat.io/ocp-tools-4-tech-preview/source-to-image-rhel8@sha256:98d8cb3a255641ca6a1bce854e5e2460c20de9fb9b28e3cc67eb459f122873dd
image: registry.redhat.io/source-to-image/source-to-image-rhel8@sha256:ac8a73e466485cc8b36c7f889b6614901915cdeb63a5f955e2fbb227744962f8
workingDir: $(workspaces.source.path)
args: ["$(params.ENV_VARS[*])"]
script: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
type: string
- name: BUILDER_IMAGE
description: The location of the buildah builder image.
default: registry.redhat.io/rhel8/buildah@sha256:99cae35f40c7ec050fed3765b2b27e0b8bbea2aa2da7c16408e2ca13c60ff8ee
default: registry.redhat.io/rhel8/buildah@sha256:55f5c7d88c77e1ab5a2ab8e877172b2b66cb196e21f10dc45148470d0ee8bbae
- name: SKIP_PUSH
description: Skip pushing the built image
default: "false"
Expand All @@ -54,7 +54,7 @@ spec:
optional: true
steps:
- name: generate
image: registry.redhat.io/ocp-tools-4-tech-preview/source-to-image-rhel8@sha256:98d8cb3a255641ca6a1bce854e5e2460c20de9fb9b28e3cc67eb459f122873dd
image: registry.redhat.io/source-to-image/source-to-image-rhel8@sha256:ac8a73e466485cc8b36c7f889b6614901915cdeb63a5f955e2fbb227744962f8
workingDir: $(workspaces.source.path)
args: ["$(params.ENV_VARS[*])"]
script: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
type: string
- name: BUILDER_IMAGE
description: The location of the buildah builder image.
default: registry.redhat.io/rhel8/buildah@sha256:99cae35f40c7ec050fed3765b2b27e0b8bbea2aa2da7c16408e2ca13c60ff8ee
default: registry.redhat.io/rhel8/buildah@sha256:55f5c7d88c77e1ab5a2ab8e877172b2b66cb196e21f10dc45148470d0ee8bbae
- name: SKIP_PUSH
description: Skip pushing the built image
default: "false"
Expand All @@ -66,7 +66,7 @@ spec:
optional: true
steps:
- name: generate
image: registry.redhat.io/ocp-tools-4-tech-preview/source-to-image-rhel8@sha256:98d8cb3a255641ca6a1bce854e5e2460c20de9fb9b28e3cc67eb459f122873dd
image: registry.redhat.io/source-to-image/source-to-image-rhel8@sha256:ac8a73e466485cc8b36c7f889b6614901915cdeb63a5f955e2fbb227744962f8
workingDir: $(workspaces.source.path)
args: ["$(params.ENV_VARS[*])"]
script: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
type: string
- name: BUILDER_IMAGE
description: The location of the buildah builder image.
default: registry.redhat.io/rhel8/buildah@sha256:99cae35f40c7ec050fed3765b2b27e0b8bbea2aa2da7c16408e2ca13c60ff8ee
default: registry.redhat.io/rhel8/buildah@sha256:55f5c7d88c77e1ab5a2ab8e877172b2b66cb196e21f10dc45148470d0ee8bbae
- name: SKIP_PUSH
description: Skip pushing the built image
default: "false"
Expand All @@ -54,7 +54,7 @@ spec:
optional: true
steps:
- name: generate
image: registry.redhat.io/ocp-tools-4-tech-preview/source-to-image-rhel8@sha256:98d8cb3a255641ca6a1bce854e5e2460c20de9fb9b28e3cc67eb459f122873dd
image: registry.redhat.io/source-to-image/source-to-image-rhel8@sha256:ac8a73e466485cc8b36c7f889b6614901915cdeb63a5f955e2fbb227744962f8
workingDir: $(workspaces.source.path)
args: ["$(params.ENV_VARS[*])"]
script: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
type: string
- name: BUILDER_IMAGE
description: The location of the buildah builder image.
default: registry.redhat.io/rhel8/buildah@sha256:99cae35f40c7ec050fed3765b2b27e0b8bbea2aa2da7c16408e2ca13c60ff8ee
default: registry.redhat.io/rhel8/buildah@sha256:55f5c7d88c77e1ab5a2ab8e877172b2b66cb196e21f10dc45148470d0ee8bbae
- name: SKIP_PUSH
description: Skip pushing the built image
default: "false"
Expand All @@ -54,7 +54,7 @@ spec:
optional: true
steps:
- name: generate
image: registry.redhat.io/ocp-tools-4-tech-preview/source-to-image-rhel8@sha256:98d8cb3a255641ca6a1bce854e5e2460c20de9fb9b28e3cc67eb459f122873dd
image: registry.redhat.io/source-to-image/source-to-image-rhel8@sha256:ac8a73e466485cc8b36c7f889b6614901915cdeb63a5f955e2fbb227744962f8
workingDir: $(workspaces.source.path)
args: ["$(params.ENV_VARS[*])"]
script: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
type: string
- name: BUILDER_IMAGE
description: The location of the buildah builder image.
default: registry.redhat.io/rhel8/buildah@sha256:99cae35f40c7ec050fed3765b2b27e0b8bbea2aa2da7c16408e2ca13c60ff8ee
default: registry.redhat.io/rhel8/buildah@sha256:55f5c7d88c77e1ab5a2ab8e877172b2b66cb196e21f10dc45148470d0ee8bbae
- name: SKIP_PUSH
description: Skip pushing the built image
default: "false"
Expand All @@ -54,7 +54,7 @@ spec:
optional: true
steps:
- name: generate
image: registry.redhat.io/ocp-tools-4-tech-preview/source-to-image-rhel8@sha256:98d8cb3a255641ca6a1bce854e5e2460c20de9fb9b28e3cc67eb459f122873dd
image: registry.redhat.io/source-to-image/source-to-image-rhel8@sha256:ac8a73e466485cc8b36c7f889b6614901915cdeb63a5f955e2fbb227744962f8
workingDir: $(workspaces.source.path)
args: ["$(params.ENV_VARS[*])"]
script: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
type: string
- name: BUILDER_IMAGE
description: The location of the buildah builder image.
default: registry.redhat.io/rhel8/buildah@sha256:99cae35f40c7ec050fed3765b2b27e0b8bbea2aa2da7c16408e2ca13c60ff8ee
default: registry.redhat.io/rhel8/buildah@sha256:55f5c7d88c77e1ab5a2ab8e877172b2b66cb196e21f10dc45148470d0ee8bbae
- name: SKIP_PUSH
description: Skip pushing the built image
default: "false"
Expand All @@ -54,7 +54,7 @@ spec:
optional: true
steps:
- name: generate
image: registry.redhat.io/ocp-tools-4-tech-preview/source-to-image-rhel8@sha256:98d8cb3a255641ca6a1bce854e5e2460c20de9fb9b28e3cc67eb459f122873dd
image: registry.redhat.io/source-to-image/source-to-image-rhel8@sha256:ac8a73e466485cc8b36c7f889b6614901915cdeb63a5f955e2fbb227744962f8
workingDir: $(workspaces.source.path)
args: ["$(params.ENV_VARS[*])"]
script: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
type: string
- name: BUILDER_IMAGE
description: The location of the buildah builder image.
default: registry.redhat.io/rhel8/buildah@sha256:99cae35f40c7ec050fed3765b2b27e0b8bbea2aa2da7c16408e2ca13c60ff8ee
default: registry.redhat.io/rhel8/buildah@sha256:55f5c7d88c77e1ab5a2ab8e877172b2b66cb196e21f10dc45148470d0ee8bbae
- name: SKIP_PUSH
description: Skip pushing the built image
default: "false"
Expand All @@ -54,7 +54,7 @@ spec:
optional: true
steps:
- name: generate
image: registry.redhat.io/ocp-tools-4-tech-preview/source-to-image-rhel8@sha256:98d8cb3a255641ca6a1bce854e5e2460c20de9fb9b28e3cc67eb459f122873dd
image: registry.redhat.io/source-to-image/source-to-image-rhel8@sha256:ac8a73e466485cc8b36c7f889b6614901915cdeb63a5f955e2fbb227744962f8
workingDir: $(workspaces.source.path)
args: ["$(params.ENV_VARS[*])"]
script: |
Expand Down
14 changes: 7 additions & 7 deletions config/openshift/base/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,21 @@ spec:
- name: CONFIG_OBSERVABILITY_NAME
value: tekton-config-observability
- name: IMAGE_HUB_TEKTON_HUB_DB
value: registry.redhat.io/rhel8/postgresql-13@sha256:eceab3d3b02f7d24054c410054b2f125eb4ec4ac9cca9d3f21702416d55a6c5c
value: registry.redhat.io/rhel8/postgresql-13@sha256:8f837badac11de8a7866e137b7763bbd10418b935e82868dddf09280683c2455
- name: IMAGE_ADDONS_PARAM_BUILDER_IMAGE
value: registry.redhat.io/rhel8/buildah@sha256:bafb452c5346d8517d94639efa90e8d6d72cd11e45d49369c3d9305784d1c3f6
value: registry.redhat.io/rhel8/buildah@sha256:55f5c7d88c77e1ab5a2ab8e877172b2b66cb196e21f10dc45148470d0ee8bbae
- name: IMAGE_ADDONS_PARAM_KN_IMAGE
value: registry.redhat.io/openshift-serverless-1/client-kn-rhel8@sha256:bf6cf2e87fb19f7aa9a490b83c16af69834c0721220a643710a1b077959e91ca
- name: IMAGE_ADDONS_MVN_SETTINGS
value: registry.redhat.io/ubi8/ubi-minimal@sha256:8d43664c250c72d35af8498c7ff76a9f0d42f16b9b3b29f0caa747121778de0e
value: registry.redhat.io/ubi8/ubi-minimal@sha256:b93deceb59a58588d5b16429fc47f98920f84740a1f2ed6454e33275f0701b59
- name: IMAGE_ADDONS_SKOPEO_COPY
value: registry.redhat.io/rhel8/skopeo@sha256:2ff1fa13afd652805490bc0138aefcc8611f865c17fa4103a55b8ed9a721828e
value: registry.redhat.io/rhel8/skopeo@sha256:91f6ffc3be778ebeb59a0da528f93da5a0332b61d1e689ffdbaf159d25cabaeb
- name: IMAGE_ADDONS_GENERATE
value: registry.redhat.io/ocp-tools-4-tech-preview/source-to-image-rhel8@sha256:98d8cb3a255641ca6a1bce854e5e2460c20de9fb9b28e3cc67eb459f122873dd
value: registry.redhat.io/source-to-image/source-to-image-rhel8@sha256:ac8a73e466485cc8b36c7f889b6614901915cdeb63a5f955e2fbb227744962f8
- name: IMAGE_ADDONS_GEN_ENV_FILE
value: registry.redhat.io/ocp-tools-4-tech-preview/source-to-image-rhel8@sha256:98d8cb3a255641ca6a1bce854e5e2460c20de9fb9b28e3cc67eb459f122873dd
value: registry.redhat.io/source-to-image/source-to-image-rhel8@sha256:ac8a73e466485cc8b36c7f889b6614901915cdeb63a5f955e2fbb227744962f8
- name: IMAGE_ADDONS_PARAM_MAVEN_IMAGE
value: registry.redhat.io/ubi8/openjdk-17@sha256:7942acf43a41b8fd202de7c5f7745d9732fae00a401b3da06e1ac988ac26ba4d
value: registry.redhat.io/ubi8/openjdk-17@sha256:af305e087061cbaa4107ce0b304a1ef987f6b54bae3f75bfd529cfd084cba9b5
- name: openshift-pipelines-operator-cluster-operations # tektoninstallerset reconciler
image: ko://github.com/tektoncd/operator/cmd/openshift/operator
args:
Expand Down
6 changes: 4 additions & 2 deletions hack/openshift/update-image-sha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ declare -A IMAGES=(
["kn"]="registry.redhat.io/openshift-serverless-1/client-kn-rhel8"
["postgresql"]="registry.redhat.io/rhel8/postgresql-13"
["skopeo-copy"]="registry.redhat.io/rhel8/skopeo"
["s2i"]="registry.redhat.io/ocp-tools-4-tech-preview/source-to-image-rhel8"
["s2i"]="registry.redhat.io/source-to-image/source-to-image-rhel8"
["ubi-minimal"]="registry.redhat.io/ubi8/ubi-minimal"
["java"]="registry.redhat.io/ubi8/openjdk-17"
)
Expand All @@ -68,7 +68,7 @@ find_latest_versions() {

find_sha_from_tag() {
local image_url=${1:-""}
podman run docker.io/mplatform/manifest-tool:v2.0.0 --username=${USERNAME} --password=${PASSWORD} inspect $image_url --raw | jq '.digest' | tr -d '"'
podman run --rm docker.io/mplatform/manifest-tool:v2.0.0 --username=${USERNAME} --password=${PASSWORD} inspect $image_url --raw | jq '.digest' | tr -d '"'
}

update_image_sha() {
Expand All @@ -79,6 +79,8 @@ update_image_sha() {
echo replacemnet var = ${image_prefix}
sed -i -E 's%('${image_prefix}').*%\1@'${image_sha}'%' config/openshift/base/operator.yaml
sed -i -E 's%('${image_prefix}').*%\1@'${image_sha}'%' operatorhub/openshift/config.yaml
sed -i -E 's%('${image_prefix}').*%\1@'${image_sha}'%' operatorhub/openshift/release-artifacts/bundle/manifests/*.yaml
find cmd/openshift/operator/kodata/tekton-addon/addons/ -type f -name "*.yaml" -exec sed -i -E 's%('${image_prefix}').*%\1@'${image_sha}'%' {} +
}


Expand Down
12 changes: 6 additions & 6 deletions operatorhub/openshift/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,21 @@ image-substitutions:
containerName: openshift-pipelines-operator-lifecycle
envKeys:
- IMAGE_ADDONS_PARAM_KN_IMAGE
- image: registry.redhat.io/rhel8/skopeo@sha256:2ff1fa13afd652805490bc0138aefcc8611f865c17fa4103a55b8ed9a721828e
- image: registry.redhat.io/rhel8/skopeo@sha256:91f6ffc3be778ebeb59a0da528f93da5a0332b61d1e689ffdbaf159d25cabaeb
replaceLocations:
envTargets:
- deploymentName: openshift-pipelines-operator
containerName: openshift-pipelines-operator-lifecycle
envKeys:
- IMAGE_ADDONS_SKOPEO_COPY
- image: registry.redhat.io/rhel8/buildah@sha256:bafb452c5346d8517d94639efa90e8d6d72cd11e45d49369c3d9305784d1c3f6
- image: registry.redhat.io/rhel8/buildah@sha256:55f5c7d88c77e1ab5a2ab8e877172b2b66cb196e21f10dc45148470d0ee8bbae
replaceLocations:
envTargets:
- deploymentName: openshift-pipelines-operator
containerName: openshift-pipelines-operator-lifecycle
envKeys:
- IMAGE_ADDONS_PARAM_BUILDER_IMAGE
- image: registry.redhat.io/ocp-tools-4-tech-preview/source-to-image-rhel8@sha256:98d8cb3a255641ca6a1bce854e5e2460c20de9fb9b28e3cc67eb459f122873dd
- image: registry.redhat.io/source-to-image/source-to-image-rhel8@sha256:ac8a73e466485cc8b36c7f889b6614901915cdeb63a5f955e2fbb227744962f8
replaceLocations:
envTargets:
- deploymentName: openshift-pipelines-operator
Expand All @@ -141,7 +141,7 @@ image-substitutions:
- IMAGE_ADDONS_GENERATE
- IMAGE_ADDONS_GEN_ENV_FILE

- image: registry.redhat.io/ubi8/ubi-minimal@sha256:8d43664c250c72d35af8498c7ff76a9f0d42f16b9b3b29f0caa747121778de0e
- image: registry.redhat.io/ubi8/ubi-minimal@sha256:b93deceb59a58588d5b16429fc47f98920f84740a1f2ed6454e33275f0701b59
replaceLocations:
envTargets:
- deploymentName: openshift-pipelines-operator
Expand Down Expand Up @@ -175,7 +175,7 @@ image-substitutions:
containerName: openshift-pipelines-operator-lifecycle
envKeys:
- IMAGE_CHAINS_TEKTON_CHAINS_CONTROLLER
- image: registry.redhat.io/rhel8/postgresql-13@sha256:eceab3d3b02f7d24054c410054b2f125eb4ec4ac9cca9d3f21702416d55a6c5c
- image: registry.redhat.io/rhel8/postgresql-13@sha256:8f837badac11de8a7866e137b7763bbd10418b935e82868dddf09280683c2455
replaceLocations:
envTargets:
- deploymentName: openshift-pipelines-operator
Expand Down Expand Up @@ -228,7 +228,7 @@ image-substitutions:
envKeys:
- IMAGE_RESULTS_API

- image: registry.redhat.io/ubi8/openjdk-17@sha256:7942acf43a41b8fd202de7c5f7745d9732fae00a401b3da06e1ac988ac26ba4d
- image: registry.redhat.io/ubi8/openjdk-17@sha256:af305e087061cbaa4107ce0b304a1ef987f6b54bae3f75bfd529cfd084cba9b5
replaceLocations:
envTargets:
- deploymentName: openshift-pipelines-operator
Expand Down
Loading

0 comments on commit f501751

Please sign in to comment.