Skip to content

Commit 11a49dd

Browse files
authored
Merge branch 'main' into consolidate-code
2 parents 44105fd + e807ad5 commit 11a49dd

7 files changed

Lines changed: 16 additions & 21 deletions

File tree

.one-pipeline-cd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ setup:
2323
echo "${DIGEST}"
2424
echo "${APP}" | jq '.'
2525
26-
SAVED_DIGEST="$(skopeo inspect docker://$ARTIFACT | grep Digest | grep -o 'sha[^\"]*')"
26+
SAVED_DIGEST="$(skopeo inspect docker://$ARTIFACT | jq '.Digest'| sed -e 's/"//g')"
2727
if [[ ${DIGEST} == ${SAVED_DIGEST} ]]; then
2828
echo "Image, $ARTIFACT, passes validation"
2929
else

.one-pipeline.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ containerize:
306306
for i in "${tags[@]}"
307307
do
308308
IMAGE=$PIPELINE_REGISTRY/$PIPELINE_OPERATOR_IMAGE:$i
309-
DIGEST="$(skopeo inspect docker://$IMAGE | grep Digest | grep -o 'sha[^\"]*')"
309+
DIGEST="$(skopeo inspect docker://$IMAGE | jq '.Digest'| sed -e 's/"//g')"
310310
{ ARCH="$(echo $i | grep -o '\(amd64\|s390x\|ppc64le\)$')" && TYPE="image"; } || { TYPE="manifest"; }
311311
if [[ "$TYPE" == "manifest" ]]; then
312312
echo "Saving artifact operator-$i type=$TYPE name=$IMAGE digest=$DIGEST"
@@ -317,13 +317,13 @@ containerize:
317317
fi
318318
done
319319
IMAGE=$PIPELINE_REGISTRY/$PIPELINE_OPERATOR_IMAGE-bundle:${RELEASE_TARGET}
320-
DIGEST="$(skopeo inspect docker://$IMAGE | grep Digest | grep -o 'sha[^\"]*')"
320+
DIGEST="$(skopeo inspect docker://$IMAGE | jq '.Digest'| sed -e 's/"//g')"
321321
echo "Saving artifact bundle-${RELEASE_TARGET} name=$IMAGE digest=$DIGEST"
322322
save_artifact bundle-${RELEASE_TARGET} type=image name="$IMAGE" "digest=$DIGEST"
323323
for i in "${tags[@]}"
324324
do
325325
IMAGE=$PIPELINE_REGISTRY/$PIPELINE_OPERATOR_IMAGE-catalog:$i
326-
DIGEST="$(skopeo inspect docker://$IMAGE | grep Digest | grep -o 'sha[^\"]*')"
326+
DIGEST="$(skopeo inspect docker://$IMAGE | jq '.Digest'| sed -e 's/"//g')"
327327
{ ARCH="$(echo $i | grep -o '\(amd64\|s390x\|ppc64le\)$')" && TYPE="image"; } || { ARCH="amd64" && TYPE="manifest"; }
328328
if [[ "$TYPE" == "manifest" ]]; then
329329
echo "Saving artifact catalog-$i type=$TYPE name=$IMAGE digest=$DIGEST"
@@ -340,7 +340,7 @@ containerize:
340340
341341
## Perform lint
342342
IMAGE="${PIPELINE_REGISTRY}/${PIPELINE_OPERATOR_IMAGE}-bundle:${RELEASE_TARGET}"
343-
DIGEST="$(skopeo inspect docker://$IMAGE | grep Digest | grep -o 'sha[^\"]*')"
343+
DIGEST="$(skopeo inspect docker://$IMAGE | jq '.Digest'| sed -e 's/"//g')"
344344
BUNDLE_IMAGE_WITH_DIGEST="${IMAGE}@${DIGEST}"
345345
./scripts/pipeline/static-linter-scan.sh --git-token $(get_env git-token) --bundle-image $BUNDLE_IMAGE_WITH_DIGEST --static-linter-version $(get_env static-linter-version)
346346

bundle/tests/scorecard/kuttl/probe/03-assert.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ spec:
4343
successThreshold: 1
4444
failureThreshold: 20
4545
status:
46-
# not checking readyReplicas or replicas while using icr.io/appcafe/websphere-liberty:full-java8-openj9-ubi
47-
# as it uses different default ports. Replace with icr.io/appcafe/open-liberty/samples/getting-started
48-
# when available
49-
# readyReplicas: 1
50-
# replicas: 1
46+
readyReplicas: 1
47+
replicas: 1
5148
updatedReplicas: 1

bundle/tests/scorecard/kuttl/probe/03-runtime-probe-defaults.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: probes-rc
55
spec:
66
# Add fields here
7-
applicationImage: icr.io/appcafe/open-liberty
7+
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started
88
manageTLS: false
99
service:
1010
port: 9443

bundle/tests/scorecard/kuttl/probe/04-assert.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ spec:
4343
successThreshold: 1
4444
failureThreshold: 5
4545
status:
46-
# not checking readyReplicas or replicas while using icr.io/appcafe/websphere-liberty:full-java8-openj9-ubi
47-
# as it uses different default ports. Replace with icr.io/appcafe/open-liberty/samples/getting-started
48-
# when available
49-
# readyReplicas: 1
50-
# replicas: 1
46+
readyReplicas: 1
47+
replicas: 1
5148
updatedReplicas: 1

bundle/tests/scorecard/kuttl/probe/05-assert.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ spec:
2323
successThreshold: 1
2424
failureThreshold: 20
2525
status:
26-
# not checking readyReplicas or replicas while using icr.io/appcafe/websphere-liberty:full-java8-openj9-ubi
27-
# as it uses different default ports. Replace with icr.io/appcafe/open-liberty/samples/getting-started
28-
# when available
29-
# readyReplicas: 1
30-
# replicas: 1
26+
readyReplicas: 1
27+
replicas: 1
3128
updatedReplicas: 1

scripts/setup-kind-cluster.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ install_kind() {
1616
}
1717

1818
install_dependencies() {
19+
# Without this, pods may fail with 'too many open files'
20+
# https://kind.sigs.k8s.io/docs/user/known-issues/#pod-errors-due-to-too-many-open-files
21+
sysctl fs.inotify.max_user_watches=524288
22+
sysctl fs.inotify.max_user_instances=512
1923
## Install docker
2024
if ! command -v docker &> /dev/null; then
2125
echo "****** Installing Docker..."

0 commit comments

Comments
 (0)