Skip to content

Commit 08379b5

Browse files
authoredDec 1, 2023
Merge pull request #599 from application-stacks/lcj-update-130
Update sample app, go-restful library and exclude sample app image from CD publishing process
2 parents 505ef6f + d451cfe commit 08379b5

10 files changed

+27
-15
lines changed
 

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build/_output
44
build/_test
55
bin/controller-gen
66
bin/kustomize
7-
bundle/tests/scorecard/kuttl/kubeconfig
7+
bundle/tests
88
operators
99
vendor
1010
# Created by https://www.gitignore.io/api/go,vim,emacs,visualstudiocode

‎.one-pipeline-cd.yaml

+13-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ setup:
2323
echo "${DIGEST}"
2424
echo "${APP}" | jq '.'
2525
26+
if [[ "${ARTIFACT}" == *"icr.io/appcafe/open-liberty/samples/"* ]];then
27+
echo "Exclude samples from digest validation: ${ARTIFACT}"
28+
continue
29+
fi
30+
2631
SAVED_DIGEST="$(skopeo inspect docker://$ARTIFACT | jq '.Digest'| sed -e 's/"//g')"
2732
if [[ ${DIGEST} == ${SAVED_DIGEST} ]]; then
2833
echo "Image, $ARTIFACT, passes validation"
@@ -64,12 +69,19 @@ deploy:
6469
for INVENTORY_ENTRY in $(echo "${INVENTORY_ENTRIES}" | jq -r '.[] '); do
6570
APP=$(cat "${INVENTORY_PATH}/${INVENTORY_ENTRY}")
6671
ARTIFACT=$(echo "${APP}" | jq -r '.artifact')
72+
echo "${ARTIFACT}"
73+
74+
if [[ "${ARTIFACT}" == *"icr.io/appcafe/open-liberty/samples/"* ]];then
75+
echo "Exclude samples from publishing: ${ARTIFACT}"
76+
continue
77+
fi
78+
6779
NAME=$(echo "${APP}" | jq -r '.name')
6880
DIGEST=$(echo "${APP}" | jq -r '.sha256' )
6981
TYPE=$(echo "${APP}" | jq -r '.type' )
7082
REPO=$(echo "${APP}" | jq -r '.repository_url' ).git
7183
COMMIT=$(echo "${APP}" | jq -r '.commit_sha' )
72-
echo "${ARTIFACT}"
84+
7385
#echo "${ARTIFACT##*/}"
7486
IMAGE_NAME="${ARTIFACT##*/}"
7587
echo "Image name: $IMAGE_NAME"

‎bundle/manifests/runtime-component.clusterserviceversion.yaml

+5-5
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:bd489232ab238c3d5b484108aa4e48dd296a5022119c251f31238c4f65a2469f",
14+
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d",
1515
"expose": true,
1616
"manageTLS": true,
1717
"replicas": 1,
@@ -44,7 +44,7 @@ metadata:
4444
"name": "runtimecomponent-sample"
4545
},
4646
"spec": {
47-
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:bd489232ab238c3d5b484108aa4e48dd296a5022119c251f31238c4f65a2469f",
47+
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d",
4848
"expose": true,
4949
"replicas": 1,
5050
"service": {
@@ -71,7 +71,7 @@ metadata:
7171
categories: Application Runtime
7272
certified: "true"
7373
containerImage: icr.io/appcafe/runtime-component-operator:daily
74-
createdAt: "2023-11-03T22:14:54Z"
74+
createdAt: "2023-12-01T03:25:43Z"
7575
description: Deploys any runtime component with dynamic and auto-tuning configuration
7676
olm.skipRange: '>=0.8.0 <1.3.0'
7777
operators.openshift.io/infrastructure-features: '["disconnected"]'
@@ -1006,7 +1006,7 @@ spec:
10061006
fieldRef:
10071007
fieldPath: metadata.annotations['olm.targetNamespaces']
10081008
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
1009-
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:bd489232ab238c3d5b484108aa4e48dd296a5022119c251f31238c4f65a2469f
1009+
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d
10101010
- name: RELATED_IMAGE_RUNTIME_COMPONENT_OPERATOR
10111011
value: icr.io/appcafe/runtime-component-operator:daily
10121012
image: icr.io/appcafe/runtime-component-operator:daily
@@ -1289,7 +1289,7 @@ spec:
12891289
provider:
12901290
name: Community
12911291
relatedImages:
1292-
- image: icr.io/appcafe/open-liberty/samples/getting-started@sha256:bd489232ab238c3d5b484108aa4e48dd296a5022119c251f31238c4f65a2469f
1292+
- image: icr.io/appcafe/open-liberty/samples/getting-started@sha256:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d
12931293
name: liberty-sample-app
12941294
- image: icr.io/appcafe/runtime-component-operator:daily
12951295
name: runtime-component-operator

‎config/manager/manager.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ 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:bd489232ab238c3d5b484108aa4e48dd296a5022119c251f31238c4f65a2469f
70+
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d
7171
- name: RELATED_IMAGE_RUNTIME_COMPONENT_OPERATOR
7272
value: OPERATOR_IMAGE
7373
securityContext:

‎config/samples/rc.app.stacks_v1_runtimecomponent.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: RuntimeComponent
33
metadata:
44
name: runtimecomponent-sample
55
spec:
6-
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started@sha256:bd489232ab238c3d5b484108aa4e48dd296a5022119c251f31238c4f65a2469f
6+
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started@sha256:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d
77
expose: true
88
manageTLS: true
99
replicas: 1

‎config/samples/rc.app.stacks_v1beta2_runtimecomponent.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: runtimecomponent-sample
55
spec:
66
# Add fields here
7-
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started@sha256:bd489232ab238c3d5b484108aa4e48dd296a5022119c251f31238c4f65a2469f
7+
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started@sha256:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d
88
expose: true
99
replicas: 1
1010
service:

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/blendle/zapdriver v1.3.1 // indirect
2424
github.com/cespare/xxhash/v2 v2.1.2 // indirect
2525
github.com/davecgh/go-spew v1.1.1 // indirect
26-
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
26+
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
2727
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
2828
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
2929
github.com/fsnotify/fsnotify v1.5.4 // indirect

‎go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
8888
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
8989
github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153 h1:yUdfgN0XgIJw7foRItutHYUIhlcKzcSf5vDpdhQAKTc=
9090
github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
91-
github.com/emicklei/go-restful/v3 v3.9.0 h1:XwGDlfxEnQZzuopoqxwSEllNcCOM9DhhFyhFIIGKwxE=
92-
github.com/emicklei/go-restful/v3 v3.9.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
91+
github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g=
92+
github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
9393
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
9494
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
9595
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=

‎internal/deploy/kubectl/runtime-component-operator.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ spec:
303303
- name: WATCH_NAMESPACE
304304
value: RUNTIME_COMPONENT_WATCH_NAMESPACE
305305
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
306-
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:bd489232ab238c3d5b484108aa4e48dd296a5022119c251f31238c4f65a2469f
306+
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d
307307
- name: RELATED_IMAGE_RUNTIME_COMPONENT_OPERATOR
308308
value: icr.io/appcafe/runtime-component-operator:daily
309309
image: icr.io/appcafe/runtime-component-operator:daily

‎internal/deploy/kustomize/daily/base/runtime-component-operator.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ spec:
5050
fieldRef:
5151
fieldPath: metadata.namespace
5252
- name: RELATED_IMAGE_LIBERTY_SAMPLE_APP
53-
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:bd489232ab238c3d5b484108aa4e48dd296a5022119c251f31238c4f65a2469f
53+
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d
5454
- name: RELATED_IMAGE_RUNTIME_COMPONENT_OPERATOR
5555
value: icr.io/appcafe/runtime-component-operator:daily
5656
image: icr.io/appcafe/runtime-component-operator:daily

0 commit comments

Comments
 (0)
Please sign in to comment.