Skip to content

Commit b7a098e

Browse files
committed
Merge branch 'probe-defaults' of github.com:application-stacks/runtime-component-operator into probe-defaults
2 parents df29e8d + 5275531 commit b7a098e

File tree

58 files changed

+30119
-1289
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+30119
-1289
lines changed

.one-pipeline-archive.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,24 @@ setup:
2323
curl -X POST -H 'Content-type: application/json' --data '{"text":"<'$user'> Archive operation failure see below "}' $(get_env slack_web_hook_url)
2424
echo " "
2525
done
26-
pipeline_url="https://cloud.ibm.com/devops/pipelines/tekton/${PIPELINE_ID}/runs/${PIPELINE_RUN_ID}"
26+
pipeline_url="https://cloud.ibm.com/devops/pipelines/tekton/${PIPELINE_ID}/runs/${PIPELINE_RUN_ID}?env_id=ibm:yp:us-south"
2727
curl -X POST -H 'Content-type: application/json' --data '{"text":"The archive operation for '$REPO' has failed."}' $(get_env slack_web_hook_url) </dev/null
2828
curl -X POST -H 'Content-type: application/json' --data '{"text":"Failing pipeline: '$pipeline_url'"}' $(get_env slack_web_hook_url) </dev/null
2929
curl -X POST -H 'Content-type: application/json' --data '{"text":"Destination repository: '$ARCHIVE_DESTINATION_REPO'"}' $(get_env slack_web_hook_url) </dev/null
3030
else
3131
echo "${REPO} has been archived successfully to ${ARCHIVE_DESTINATION_REPO}"
3232
fi
3333
34+
detect-secrets:
35+
image: icr.io/continuous-delivery/pipeline/pipeline-base-ubi:3.12
36+
abort_on_failure: false
37+
image_pull_policy: IfNotPresent
38+
skip: true
39+
script: |
40+
#!/usr/bin/env bash
41+
echo "Skip detect-secrets"
42+
exit 0
43+
3444
test:
3545
dind: true
3646
abort_on_failure: false

.one-pipeline-cd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ deploy:
8181
done
8282
8383
sign-artifact:
84-
image: docker-eu-public.artifactory.swg-devops.com/wcp-compliance-automation-team-docker-local/csso-image-sign:6.0.0@sha256:3499f75eb669416536f0d680104e7e9e37147c168459152d716a1fbf9b1af5a2
84+
image: icr.io/continuous-delivery/toolchains/devsecops/csso-image-sign:7.0.0@sha256:e818a62c54f328752a94fd37f73b133e6586d9eb0271afb97ffc6a3faf77fede
8585
script: |
8686
#!/usr/bin/env bash
8787
echo "sign-artifact stage"
@@ -96,7 +96,7 @@ sign-artifact:
9696
cat rco.pub
9797
9898
acceptance-test:
99-
image: docker-eu-public.artifactory.swg-devops.com/wcp-compliance-automation-team-docker-local/csso-image-sign:6.0.0@sha256:3499f75eb669416536f0d680104e7e9e37147c168459152d716a1fbf9b1af5a2
99+
image: icr.io/continuous-delivery/toolchains/devsecops/csso-image-sign:7.0.0@sha256:e818a62c54f328752a94fd37f73b133e6586d9eb0271afb97ffc6a3faf77fede
100100
script: |
101101
#!/usr/bin/env bash
102102
echo "acceptance-test stage"

.one-pipeline.yaml

Lines changed: 38 additions & 469 deletions
Large diffs are not rendered by default.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
2626
ARG USER_ID=65532
2727
ARG GROUP_ID=65532
2828

29-
ARG VERSION_LABEL=1.2.1
29+
ARG VERSION_LABEL=1.2.2
3030
ARG RELEASE_LABEL=XX
3131
ARG VCS_REF=0123456789012345678901234567890123456789
3232
ARG VCS_URL="https://github.com/application-stacks/runtime-component-operator"

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# To re-generate a bundle for another specific version without changing the standard setup, you can:
44
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
55
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
6-
VERSION ?= 1.2.1
6+
VERSION ?= 1.2.2
77
OPERATOR_SDK_RELEASE_VERSION ?= v1.24.0
88

99
# CHANNELS define the bundle channels used in the bundle.
@@ -189,6 +189,8 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
189189
.PHONY: bundle
190190
bundle: manifests setup kustomize ## Generate bundle manifests and metadata, then validate generated files.
191191
scripts/update-sample.sh
192+
193+
sed -i.bak "s,OPERATOR_IMAGE,${IMG},g" config/manager/manager.yaml
192194
sed -i.bak "s,IMAGE,${IMG},g;s,CREATEDAT,${CREATEDAT},g" config/manifests/patches/csvAnnotations.yaml
193195
operator-sdk generate kustomize manifests -q
194196
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
@@ -200,9 +202,6 @@ bundle: manifests setup kustomize ## Generate bundle manifests and metadata, the
200202
$(KUSTOMIZE) build config/kustomize/operator -o internal/deploy/kustomize/daily/base/runtime-component-operator.yaml
201203
sed -i.bak "s,${IMG},${KUSTOMIZE_IMG},g;s,serviceAccountName: controller-manager,serviceAccountName: rco-controller-manager,g" internal/deploy/kustomize/daily/base/runtime-component-operator.yaml
202204
$(KUSTOMIZE) build config/kustomize/roles -o internal/deploy/kustomize/daily/base/runtime-component-roles.yaml
203-
204-
mv config/manifests/patches/csvAnnotations.yaml.bak config/manifests/patches/csvAnnotations.yaml
205-
rm internal/deploy/kustomize/daily/base/runtime-component-operator.yaml.bak
206205

207206
$(KUSTOMIZE) build config/kubectl/crd -o internal/deploy/kubectl/runtime-component-crd.yaml
208207
$(KUSTOMIZE) build config/kubectl/operator -o internal/deploy/kubectl/runtime-component-operator.yaml
@@ -212,6 +211,10 @@ bundle: manifests setup kustomize ## Generate bundle manifests and metadata, the
212211
$(KUSTOMIZE) build config/kustomize/watch-all -o internal/deploy/kustomize/daily/overlays/watch-all-namespaces/cluster-roles.yaml
213212
$(KUSTOMIZE) build config/kustomize/watch-another -o internal/deploy/kustomize/daily/overlays/watch-another-namespace/rco-watched-ns/watched-roles.yaml
214213

214+
mv config/manager/manager.yaml.bak config/manager/manager.yaml
215+
mv config/manifests/patches/csvAnnotations.yaml.bak config/manifests/patches/csvAnnotations.yaml
216+
rm internal/deploy/kustomize/daily/base/runtime-component-operator.yaml.bak
217+
215218
operator-sdk bundle validate ./bundle
216219

217220
.PHONY: fmt

bundle/manifests/runtime-component.clusterserviceversion.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
"name": "runtimecomponent-sample"
1212
},
1313
"spec": {
14-
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:d3c67c4a15c97b0fb82f9ef4a2ccf474232b878787e9eea39af75a3ac78469e3",
14+
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:6bf52d536e94d6aa6eaa3ca9639e0fe9f5e71dbd891c50362939dd6aca519d02",
1515
"expose": true,
1616
"manageTLS": true,
1717
"replicas": 1,
@@ -41,7 +41,7 @@ metadata:
4141
"name": "runtimecomponent-sample"
4242
},
4343
"spec": {
44-
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:d3c67c4a15c97b0fb82f9ef4a2ccf474232b878787e9eea39af75a3ac78469e3",
44+
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:6bf52d536e94d6aa6eaa3ca9639e0fe9f5e71dbd891c50362939dd6aca519d02",
4545
"expose": true,
4646
"replicas": 1,
4747
"service": {
@@ -70,7 +70,7 @@ metadata:
7070
containerImage: icr.io/appcafe/runtime-component-operator:daily
7171
createdAt: "2023-10-05T15:42:54Z"
7272
description: Deploys any runtime component with dynamic and auto-tuning configuration
73-
olm.skipRange: '>=0.8.0 <1.2.1'
73+
olm.skipRange: '>=0.8.0 <1.2.2'
7474
operators.openshift.io/infrastructure-features: '["disconnected"]'
7575
operators.operatorframework.io/builder: operator-sdk-v1.24.0
7676
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
@@ -81,7 +81,7 @@ metadata:
8181
operatorframework.io/arch.ppc64le: supported
8282
operatorframework.io/arch.s390x: supported
8383
operatorframework.io/os.linux: supported
84-
name: runtime-component.v1.2.1
84+
name: runtime-component.v1.2.2
8585
namespace: placeholder
8686
spec:
8787
apiservicedefinitions: {}
@@ -976,7 +976,9 @@ spec:
976976
fieldRef:
977977
fieldPath: metadata.annotations['olm.targetNamespaces']
978978
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
979-
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d3c67c4a15c97b0fb82f9ef4a2ccf474232b878787e9eea39af75a3ac78469e3
979+
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:6bf52d536e94d6aa6eaa3ca9639e0fe9f5e71dbd891c50362939dd6aca519d02
980+
- name: RELATED_IMAGE_RUNTIME_COMPONENT_OPERATOR
981+
value: icr.io/appcafe/runtime-component-operator:daily
980982
image: icr.io/appcafe/runtime-component-operator:daily
981983
livenessProbe:
982984
failureThreshold: 3
@@ -1257,6 +1259,8 @@ spec:
12571259
provider:
12581260
name: Community
12591261
relatedImages:
1260-
- image: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d3c67c4a15c97b0fb82f9ef4a2ccf474232b878787e9eea39af75a3ac78469e3
1262+
- image: icr.io/appcafe/open-liberty/samples/getting-started@sha256:6bf52d536e94d6aa6eaa3ca9639e0fe9f5e71dbd891c50362939dd6aca519d02
12611263
name: liberty-sample-app
1262-
version: 1.2.1
1264+
- image: icr.io/appcafe/runtime-component-operator:daily
1265+
name: runtime-component-operator
1266+
version: 1.2.2

bundle/tests/scorecard/kuttl/basic/00-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ metadata:
1313
name: example-runtime-component
1414
status:
1515
versions:
16-
reconciled: 1.2.1
16+
reconciled: 1.2.2

bundle/tests/scorecard/kuttl/day2operation/01-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ status:
1212
- status: 'True'
1313
type: Completed
1414
versions:
15-
reconciled: 1.2.1
15+
reconciled: 1.2.2

config/manager/manager.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ spec:
6767
fieldRef:
6868
fieldPath: metadata.annotations['olm.targetNamespaces']
6969
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
70-
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d3c67c4a15c97b0fb82f9ef4a2ccf474232b878787e9eea39af75a3ac78469e3
70+
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:6bf52d536e94d6aa6eaa3ca9639e0fe9f5e71dbd891c50362939dd6aca519d02
71+
- name: RELATED_IMAGE_RUNTIME_COMPONENT_OPERATOR
72+
value: OPERATOR_IMAGE
7173
securityContext:
7274
allowPrivilegeEscalation: false
7375
privileged: false

config/manifests/bases/runtime-component.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
containerImage: icr.io/appcafe/runtime-component-operator:daily
1010
createdAt: "2022-02-25T09:00:00Z"
1111
description: Deploys any runtime component with dynamic and auto-tuning configuration
12-
olm.skipRange: '>=0.8.0 <1.2.1'
12+
olm.skipRange: '>=0.8.0 <1.2.2'
1313
operators.openshift.io/infrastructure-features: '["disconnected"]'
1414
repository: https://github.com/application-stacks/runtime-component-operator
1515
support: Community

0 commit comments

Comments
 (0)