Skip to content

Commit c9c299b

Browse files
idlewishalim-lee
andauthored
Update 0.8.x branch for 0.8.2 release (#399)
* Update sample to OpenLiberty getting started app * Check for secrets only if service account pull secrets exist The operator checks if secret resource exists even if service account does not have pull secret added. Check only if pull secret is added to service account. * Update version to 0.8.2 * Increase manager memory limit from 256 to 512 * Get e2e minikube tests running on 0.8.x * Minikube script, build and test files update * Run e2e testing for 0.8.x branch Co-authored-by: Melissa Lee <[email protected]>
1 parent 28ed3d6 commit c9c299b

File tree

57 files changed

+945
-459
lines changed

Some content is hidden

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

57 files changed

+945
-459
lines changed

.travis.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ stages:
1616
# Builds are split into 'e2e-test' and 'build' to allow e2e tests to run first. If e2e fails, don't bother
1717
# building and pushing the images for the other architectures.
1818
- name: e2e-test
19-
if: (branch = main OR tag =~ ^v) AND fork = false AND type != cron
19+
if: (branch = main OR branch = 0.8.x OR tag =~ ^v) AND fork = false AND type != cron
20+
- name: minikube-e2e-test
21+
if: (branch = main OR branch = 0.8.x OR tag =~ ^v) AND fork = false AND type != cron
2022
- name: build
2123
if: (branch = main OR tag =~ ^v) AND fork = false AND type != pull_request AND type != cron
2224
- name: build-manifest
@@ -39,6 +41,11 @@ jobs:
3941
os: linux
4042
arch: amd64
4143
script: travis_wait 45 make setup test-e2e || travis_terminate 1
44+
- name: Build image on amd64 and test on Minikube
45+
stage: minikube-e2e-test
46+
os: linux
47+
arch: amd64
48+
script: travis_wait 45 make setup minikube-test-e2e || travis_terminate 1
4249
- name: Build image on ppc64le
4350
stage: build
4451
os: linux

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
2929

3030
LABEL vendor="Runtime Component Community" \
3131
name="Runtime Component Operator" \
32-
version="0.8.1" \
32+
version="0.8.2" \
3333
summary="Image for Runtime Component Operator" \
3434
description="This image contains the controller for Runtime Component Operator. See https://github.com/application-stacks/runtime-component-operator"
3535

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
OPERATOR_SDK_RELEASE_VERSION ?= v1.6.4
22

33
# Current Operator version
4-
VERSION ?= 0.8.1
4+
VERSION ?= 0.8.2
55

66
OPERATOR_IMAGE ?= applicationstacks/operator
77

@@ -164,6 +164,9 @@ build-manifest: setup-manifest
164164
setup-manifest:
165165
./scripts/installers/install-manifest-tool.sh
166166

167+
minikube-test-e2e:
168+
./scripts/e2e-minikube.sh --test-tag "${TRAVIS_BUILD_NUMBER}"
169+
167170
test-e2e:
168171
./scripts/e2e-release.sh --registry-name default-route --registry-namespace openshift-image-registry \
169172
--test-tag "${TRAVIS_BUILD_NUMBER}" --target "${RELEASE_TARGET}"

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": "registry.connect.redhat.com/ibm/open-liberty-samples:springPetClinic",
14+
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started",
1515
"expose": true,
1616
"replicas": 1,
1717
"service": {
@@ -39,12 +39,12 @@ metadata:
3939
certified: "true"
4040
createdAt: "2022-02-25T09:00:00Z"
4141
description: Deploys any runtime component with dynamic and auto-tuning configuration
42-
olm.skipRange: <0.8.1
42+
olm.skipRange: <0.8.2
4343
operators.operatorframework.io/builder: operator-sdk-v1.6.1+git
4444
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
4545
repository: https://github.com/application-stacks/runtime-component-operator
4646
support: Community
47-
name: runtime-component.v0.8.1
47+
name: runtime-component.v0.8.2
4848
namespace: placeholder
4949
spec:
5050
apiservicedefinitions: {}
@@ -429,7 +429,7 @@ spec:
429429
resources:
430430
limits:
431431
cpu: 200m
432-
memory: 256Mi
432+
memory: 512Mi
433433
requests:
434434
cpu: 100m
435435
memory: 20Mi
@@ -599,4 +599,4 @@ spec:
599599
maturity: beta
600600
provider:
601601
name: Community
602-
version: 0.8.1
602+
version: 0.8.2

bundle/tests/scorecard/kuttl/affinity/00-node-no-affinity.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
test: affinity
88
spec:
99
# Add fields here
10-
applicationImage: 'k8s.gcr.io/pause:2.0'
10+
applicationImage: k8s.gcr.io/pause:2.0
1111
replicas: 1
1212
affinity:
1313
nodeAffinityLabels:

bundle/tests/scorecard/kuttl/affinity/01-node-affinity-label.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ metadata:
77
test: affinity
88
spec:
99
# Add fields here
10-
applicationImage: 'k8s.gcr.io/pause:2.0'
10+
applicationImage: k8s.gcr.io/pause:2.0
1111
replicas: 1
1212
affinity:
1313
nodeAffinityLabels:
14-
kuttlTest: test1
14+
kuttlTest: test1

bundle/tests/scorecard/kuttl/affinity/02-pod-affinity.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
test: affinity
88
spec:
99
# Add fields here
10-
applicationImage: 'k8s.gcr.io/pause:2.0'
10+
applicationImage: k8s.gcr.io/pause:2.0
1111
replicas: 1
1212
affinity:
1313
podAffinity:
@@ -22,4 +22,4 @@ spec:
2222
statefulSet:
2323
storage:
2424
size: "10Mi"
25-
mountPath: "/mnt/data"
25+
mountPath: "/mnt/data"

bundle/tests/scorecard/kuttl/affinity/03-pod-antiaffinity.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
test: affinity
88
spec:
99
# Add fields here
10-
applicationImage: 'k8s.gcr.io/pause:2.0'
10+
applicationImage: k8s.gcr.io/pause:2.0
1111
replicas: 1
1212
affinity:
1313
podAntiAffinity:
@@ -20,4 +20,4 @@ spec:
2020
operator: In
2121
values:
2222
- node-affinity-label-rc
23-
topologyKey: kubernetes.io/hostname
23+
topologyKey: kubernetes.io/hostname

bundle/tests/scorecard/kuttl/affinity/04-node-affinity.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
test: affinity
88
spec:
99
# Add fields here
10-
applicationImage: 'k8s.gcr.io/pause:2.0'
10+
applicationImage: k8s.gcr.io/pause:2.0
1111
replicas: 1
1212
affinity:
1313
nodeAffinity:
@@ -21,4 +21,4 @@ spec:
2121
statefulSet:
2222
storage:
2323
size: "10Mi"
24-
mountPath: "/mnt/data"
24+
mountPath: "/mnt/data"

bundle/tests/scorecard/kuttl/annotations/00-rc-deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
conflict: component
88
spec:
99
# Add fields here
10-
applicationImage: 'k8s.gcr.io/pause:2.0'
10+
applicationImage: k8s.gcr.io/pause:2.0
1111
replicas: 1
1212
deployment:
1313
annotations:

bundle/tests/scorecard/kuttl/annotations/01-rc-statefulset.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
foo1: bar1
77
spec:
88
# Add fields here
9-
applicationImage: 'k8s.gcr.io/pause:2.0'
9+
applicationImage: k8s.gcr.io/pause:2.0
1010
replicas: 1
1111
statefulSet:
1212
annotations:

bundle/tests/scorecard/kuttl/auto1/00-runtime-basic.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ metadata:
44
name: autoscaling1-rc
55
spec:
66
# Add fields here
7-
applicationImage: 'k8s.gcr.io/pause:2.0'
7+
applicationImage: k8s.gcr.io/pause:2.0
88
replicas: 1

bundle/tests/scorecard/kuttl/auto2/00-runtime-basic.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ metadata:
44
name: scale2-runtime-component
55
spec:
66
# Add fields here
7-
applicationImage: 'k8s.gcr.io/pause:2.0'
7+
applicationImage: k8s.gcr.io/pause:2.0
88
replicas: 1

bundle/tests/scorecard/kuttl/auto3/00-runtime-basic.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ metadata:
44
name: scale3-runtime-component
55
spec:
66
# Add fields here
7-
applicationImage: 'k8s.gcr.io/pause:2.0'
7+
applicationImage: k8s.gcr.io/pause:2.0
88
replicas: 1

bundle/tests/scorecard/kuttl/auto3/01-add-scaling.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
spec:
66
resources:
77
requests:
8-
cpu: "0.5"
8+
cpu: "0.2"
99
autoscaling:
1010
maxReplicas: 5
1111
minReplicas: 3

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ metadata:
44
name: example-runtime-component
55
spec:
66
# Add fields here
7-
applicationImage: 'k8s.gcr.io/pause:2.0'
7+
applicationImage: k8s.gcr.io/pause:2.0
88
replicas: 1
99

bundle/tests/scorecard/kuttl/day2operation/00-runtime.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: day2-operation-rc
55
spec:
66
# Add fields here
7-
applicationImage: 'navidsh/demo-day'
7+
applicationImage: navidsh/demo-day
88
replicas: 1
99
statefulSet:
1010
storage:

bundle/tests/scorecard/kuttl/day2operation/02-runtime-no-replicas.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ metadata:
55
name: day2-operation-rc
66
spec:
77
# Add fields here
8-
applicationImage: 'navidsh/demo-day'
9-
replicas: 0
8+
applicationImage: navidsh/demo-day
9+
replicas: 0

bundle/tests/scorecard/kuttl/day2operation/04-runtime-new-replica.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ metadata:
55
name: day2-operation-rc
66
spec:
77
# Add fields here
8-
applicationImage: 'navidsh/demo-day'
9-
replicas: 1
8+
applicationImage: navidsh/demo-day
9+
replicas: 1

bundle/tests/scorecard/kuttl/monitor/00-runtime-basic.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: service-monitor-rc
55
spec:
66
# Add fields here
7-
applicationImage: 'navidsh/demo-day'
7+
applicationImage: navidsh/demo-day
88
service:
99
type: "ClusterIP"
1010
port: 3000

bundle/tests/scorecard/kuttl/route-certificate/01-rc-with-cert.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: route-with-cert-rc
55
spec:
66
# Add fields here
7-
applicationImage: 'k8s.gcr.io/pause:2.0'
7+
applicationImage: k8s.gcr.io/pause:2.0
88
replicas: 1
99
expose: true
1010
route:

bundle/tests/scorecard/kuttl/route-certificate/02-delete-route.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: route-with-cert-rc
55
spec:
66
# Add fields here
7-
applicationImage: 'k8s.gcr.io/pause:2.0'
7+
applicationImage: k8s.gcr.io/pause:2.0
88
replicas: 1
99
expose: true
1010
route:

bundle/tests/scorecard/kuttl/routes/00-route.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: route
55
spec:
66
# Add fields here
7-
applicationImage: 'k8s.gcr.io/pause:2.0'
7+
applicationImage: k8s.gcr.io/pause:2.0
88
replicas: 1
99
expose: true
1010
route:

bundle/tests/scorecard/kuttl/routes/01-delete-route.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: route
55
spec:
66
# Add fields here
7-
applicationImage: 'k8s.gcr.io/pause:2.0'
7+
applicationImage: k8s.gcr.io/pause:2.0
88
replicas: 1
99
expose: false
1010

bundle/tests/scorecard/kuttl/service-certificate/01-rc-with-cert.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: service-with-cert-rc
55
spec:
66
# Add fields here
7-
applicationImage: 'k8s.gcr.io/pause:2.0'
7+
applicationImage: k8s.gcr.io/pause:2.0
88
replicas: 1
99
service:
1010
certificateSecretRef: service-tls-secret

bundle/tests/scorecard/kuttl/service-certificate/02-remove-cert.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: service-with-cert-rc
55
spec:
66
# Add fields here
7-
applicationImage: 'k8s.gcr.io/pause:2.0'
7+
applicationImage: k8s.gcr.io/pause:2.0
88
replicas: 1
99
service:
1010
certificateSecretRef:

bundle/tests/scorecard/kuttl/storage/00-runtime-storage.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: storage-rc
77
spec:
88
# Add fields here
9-
applicationImage: 'k8s.gcr.io/pause:2.0'
9+
applicationImage: k8s.gcr.io/pause:2.0
1010
replicas: 1
1111
statefulSet:
1212
storage:

bundle/tests/scorecard/kuttl/storage/01-runtime-no-storage.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: storage-rc
77
spec:
88
# Add fields here
9-
applicationImage: 'k8s.gcr.io/pause:2.0'
9+
applicationImage: k8s.gcr.io/pause:2.0
1010
replicas: 1
1111
statefulSet:
1212

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Secret
3+
type: kubernetes.io/tls
4+
metadata:
5+
name: ingress-tls-secret
6+
data:
7+
ca.crt: Y2FjcnQK
8+
destCA.crt: ZGVzdENBY3J0Cg==
9+
tls.crt: dGxzY3J0Cg==
10+
tls.key: dGxza2V5Cg==
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: ingress-tls-secret
5+
type: kubernetes.io/tls
6+
data:
7+
# 'tlscrt'
8+
tls.crt: dGxzY3J0Cg==
9+
# 'tlskey'
10+
tls.key: dGxza2V5Cg==
11+
# 'cacrt'
12+
ca.crt: Y2FjcnQK
13+
# 'destCAcrt'
14+
destCA.crt: ZGVzdENBY3J0Cg==
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: ingress-with-cert-rc
5+
status:
6+
replicas: 1
7+
readyReplicas: 1
8+
updatedReplicas: 1
9+
---
10+
kind: Ingress
11+
apiVersion: extensions/v1beta1
12+
metadata:
13+
name: ingress-with-cert-rc
14+
spec:
15+
tls:
16+
- hosts:
17+
- myapp.mycompany.com
18+
secretName: ingress-tls-secret
19+
rules:
20+
- host: myapp.mycompany.com
21+
http:
22+
paths:
23+
- path: /
24+
pathType: Prefix
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: rc.app.stacks/v1beta2
2+
kind: RuntimeComponent
3+
metadata:
4+
name: ingress-with-cert-rc
5+
spec:
6+
# Add fields here
7+
applicationImage: k8s.gcr.io/pause:2.0
8+
replicas: 1
9+
expose: true
10+
route:
11+
host: myapp.mycompany.com
12+
path: "/"
13+
pathType: Prefix
14+
certificateSecretRef: ingress-tls-secret
15+
termination: reencrypt
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: ingress-with-cert-rc
5+
status:
6+
replicas: 1
7+
readyReplicas: 1
8+
updatedReplicas: 1

0 commit comments

Comments
 (0)