Skip to content

Commit 1fbe96a

Browse files
authored
Merge branch 'main' into probe-defaults
2 parents 30c28af + 3092d21 commit 1fbe96a

File tree

56 files changed

+30572
-64
lines changed

Some content is hidden

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

56 files changed

+30572
-64
lines changed

Dockerfile

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

42-
ARG VERSION_LABEL=1.3.0
42+
ARG VERSION_LABEL=1.3.1
4343
ARG RELEASE_LABEL=XX
4444
ARG VCS_REF=0123456789012345678901234567890123456789
4545
ARG VCS_URL="https://github.com/application-stacks/runtime-component-operator"

Dockerfile.e2e

Lines changed: 0 additions & 17 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
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.3.0
6+
VERSION ?= 1.3.1
77
OPERATOR_SDK_RELEASE_VERSION ?= v1.27.0
88

99
# CHANNELS define the bundle channels used in the bundle.

bundle/manifests/runtime-component.clusterserviceversion.yaml

Lines changed: 8 additions & 8 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:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d",
14+
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:d735c2ceae5945a0f20adcbcb04e55472d2520b6d1abb6d3049c8521234d3b7a",
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:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d",
47+
"applicationImage": "icr.io/appcafe/open-liberty/samples/getting-started@sha256:d735c2ceae5945a0f20adcbcb04e55472d2520b6d1abb6d3049c8521234d3b7a",
4848
"expose": true,
4949
"replicas": 1,
5050
"service": {
@@ -71,9 +71,9 @@ metadata:
7171
categories: Application Runtime
7272
certified: "true"
7373
containerImage: icr.io/appcafe/runtime-component-operator:daily
74-
createdAt: "2023-12-01T03:25:43Z"
74+
createdAt: "2024-02-02T17:39:01Z"
7575
description: Deploys any runtime component with dynamic and auto-tuning configuration
76-
olm.skipRange: '>=0.8.0 <1.3.0'
76+
olm.skipRange: '>=0.8.0 <1.3.1'
7777
operators.openshift.io/infrastructure-features: '["disconnected"]'
7878
operators.operatorframework.io/builder: operator-sdk-v1.27.0
7979
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
@@ -84,7 +84,7 @@ metadata:
8484
operatorframework.io/arch.ppc64le: supported
8585
operatorframework.io/arch.s390x: supported
8686
operatorframework.io/os.linux: supported
87-
name: runtime-component.v1.3.0
87+
name: runtime-component.v1.3.1
8888
namespace: placeholder
8989
spec:
9090
apiservicedefinitions: {}
@@ -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:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d
1009+
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d735c2ceae5945a0f20adcbcb04e55472d2520b6d1abb6d3049c8521234d3b7a
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,8 +1289,8 @@ spec:
12891289
provider:
12901290
name: Community
12911291
relatedImages:
1292-
- image: icr.io/appcafe/open-liberty/samples/getting-started@sha256:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d
1292+
- image: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d735c2ceae5945a0f20adcbcb04e55472d2520b6d1abb6d3049c8521234d3b7a
12931293
name: liberty-sample-app
12941294
- image: icr.io/appcafe/runtime-component-operator:daily
12951295
name: runtime-component-operator
1296-
version: 1.3.0
1296+
version: 1.3.1

config/manager/manager.yaml

Lines changed: 1 addition & 1 deletion
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:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d
70+
value: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d735c2ceae5945a0f20adcbcb04e55472d2520b6d1abb6d3049c8521234d3b7a
7171
- name: RELATED_IMAGE_RUNTIME_COMPONENT_OPERATOR
7272
value: OPERATOR_IMAGE
7373
securityContext:

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.3.0'
12+
olm.skipRange: '>=0.8.0 <1.3.1'
1313
operators.openshift.io/infrastructure-features: '["disconnected"]'
1414
repository: https://github.com/application-stacks/runtime-component-operator
1515
support: Community

config/samples/rc.app.stacks_v1_runtimecomponent.yaml

Lines changed: 1 addition & 1 deletion
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:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d
6+
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d735c2ceae5945a0f20adcbcb04e55472d2520b6d1abb6d3049c8521234d3b7a
77
expose: true
88
manageTLS: true
99
replicas: 1

config/samples/rc.app.stacks_v1beta2_runtimecomponent.yaml

Lines changed: 1 addition & 1 deletion
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:b295be1aeefeae9f36b991a70dfd8ef615e3f4a849d6d6091cf51f55221e3c0d
7+
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started@sha256:d735c2ceae5945a0f20adcbcb04e55472d2520b6d1abb6d3049c8521234d3b7a
88
expose: true
99
replicas: 1
1010
service:
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
2+
== Installation
3+
4+
The Runtime Component Operator 1.3.1 can be installed to:
5+
6+
* watch own namespace
7+
* watch another namespace
8+
* watch all namespaces in the cluster
9+
10+
Appropriate roles and bindings are required to watch another namespace or watch all namespaces.
11+
12+
---
13+
14+
. Install Custom Resource Definition (CRD) resources for `RuntimeComponent` and `RuntimeOperation` for day-2 operation. This needs to be done only ONCE per cluster:
15+
+
16+
[source,sh]
17+
----
18+
kubectl create -f https://raw.githubusercontent.com/application-stacks/runtime-component-operator/main/deploy/releases/1.3.1/kubectl/runtime-component-crd.yaml
19+
----
20+
21+
. Install the Runtime Component Operator:
22+
23+
.. Set operator namespace and the namespace to watch:
24+
+
25+
NOTE: Ensure that you replace `<SPECIFY_OPERATOR_NAMESPACE_HERE>` and `<SPECIFY_WATCH_NAMESPACE_HERE>` with proper values. The namespaces must already exist. The commands below will not create the namespaces.
26+
+
27+
* To watch all namespaces in the cluster, set `WATCH_NAMESPACE='""'`
28+
+
29+
30+
[source,sh]
31+
----
32+
OPERATOR_NAMESPACE=<SPECIFY_OPERATOR_NAMESPACE_HERE>
33+
WATCH_NAMESPACE=<SPECIFY_WATCH_NAMESPACE_HERE>
34+
----
35+
36+
.. _Optional_: Install roles and bindings to watch another namespace or all namespaces. This step can be skipped if the operator is only watching own namespace.
37+
38+
... To watch all namespaces, install cluster-level role-based access:
39+
+
40+
[source,sh]
41+
----
42+
curl -L https://raw.githubusercontent.com/application-stacks/runtime-component-operator/main/deploy/releases/1.3.1/kubectl/runtime-component-rbac-watch-all.yaml \
43+
| sed -e "s/RUNTIME_COMPONENT_OPERATOR_NAMESPACE/${OPERATOR_NAMESPACE}/" \
44+
| kubectl apply -f -
45+
----
46+
47+
... To watch another namespace, install role with access to another namespace:
48+
+
49+
[source,sh]
50+
----
51+
curl -L https://raw.githubusercontent.com/application-stacks/runtime-component-operator/main/deploy/releases/1.3.1/kubectl/runtime-component-rbac-watch-another.yaml \
52+
| sed -e "s/RUNTIME_COMPONENT_OPERATOR_NAMESPACE/${OPERATOR_NAMESPACE}/" \
53+
| sed -e "s/RUNTIME_COMPONENT_WATCH_NAMESPACE/${WATCH_NAMESPACE}/" \
54+
| kubectl apply -f -
55+
----
56+
57+
.. Install the operator:
58+
+
59+
[source,sh]
60+
----
61+
curl -L https://raw.githubusercontent.com/application-stacks/runtime-component-operator/main/deploy/releases/1.3.1/kubectl/runtime-component-operator.yaml \
62+
| sed -e "s/RUNTIME_COMPONENT_WATCH_NAMESPACE/${WATCH_NAMESPACE}/" \
63+
| kubectl apply -n ${OPERATOR_NAMESPACE} -f -
64+
----
65+
66+
== Uninstallation
67+
68+
To uninstall the operator, run commands from Step 2c first and then Step 2b (if applicable), but after replacing `kubectl apply` with `kubectl delete`.
69+
70+
Optionally you can delete the CRD resources, but note that deleting the CRD also deletes all instances of the RuntimeComponent and RuntimeOperation custom resources in the cluster. Skip this step if you are planning to install the Runtime Component Operator again and want the existing instances of these custom resources to be managed by the new instance of the Operator. To delete the CRD, run command from Step 1, but after replacing `kubectl create` with `kubectl delete`.

0 commit comments

Comments
 (0)