Skip to content

Commit

Permalink
Changes for 0.6.0 release (#118)
Browse files Browse the repository at this point in the history
* Update version to 0.6.0

Signed-off-by: leochr <leojc@ca.ibm.com>

* Release 0.6.0

Signed-off-by: leochr <leojc@ca.ibm.com>
  • Loading branch information
leochr authored May 20, 2020
1 parent 6b2fba8 commit bab34e0
Show file tree
Hide file tree
Showing 14 changed files with 12,990 additions and 31 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.6.0]

### Added

- Added support for embedding service bindings into a custom resource ([#111](https://github.com/application-stacks/runtime-component-operator/pull/111))
- Added support for affinity settings such as _nodeAffinity, podAffinity_ and _podAntiAffinity_ ([#116](https://github.com/application-stacks/runtime-component-operator/pull/116))

### Changed

- **Breaking change:** In order for the operator to detect Service Binding custom resources automatically ("auto-detect" functionality), the name of the binding resource must follow the `<CR_NAME>-binding` format (e.g. `my-app-binding`) ([#111](https://github.com/application-stacks/runtime-component-operator/pull/111))

### Fixed

- Some monitoring configurations such as `bearerTokenSecret` are not propagated to the created `ServiceMonitor` ([#157](https://github.com/OpenLiberty/open-liberty-operator/issues/157), [#116](https://github.com/application-stacks/runtime-component-operator/pull/116))

## [0.5.1]

### Fixed
Expand Down Expand Up @@ -56,7 +63,8 @@ All notable changes to this project will be documented in this file.
The initial release of the Runtime Component Operator 🎉


[Unreleased]: https://github.com/application-stacks/runtime-component-operator/compare/v0.5.1...HEAD
[Unreleased]: https://github.com/application-stacks/runtime-component-operator/compare/v0.6.0...HEAD
[0.6.0]: https://github.com/application-stacks/runtime-component-operator/releases/tag/v0.6.0
[0.5.1]: https://github.com/application-stacks/runtime-component-operator/releases/tag/v0.5.1
[0.5.0]: https://github.com/application-stacks/runtime-component-operator/releases/tag/v0.5.0
[0.4.2]: https://github.com/application-stacks/runtime-component-operator/releases/tag/v0.4.2
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

LABEL vendor="Runtime Component Community" \
name="Runtime Component Operator" \
version="0.5.1" \
version="0.6.0" \
summary="Image for Runtime Component Operator" \
description="This image contains the controller for Runtime Component Operator. See https://github.com/application-stacks/runtime-component-operator"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
channels:
- currentCSV: runtime-component-operator.v0.5.1
- currentCSV: runtime-component-operator.v0.6.0
name: beta
defaultChannel: beta
packageName: runtime-component-operator-certified

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
channels:
- currentCSV: runtime-component-operator.v0.5.1
- currentCSV: runtime-component-operator.v0.6.0
name: beta
defaultChannel: beta
packageName: runtime-component-operator
74 changes: 74 additions & 0 deletions deploy/releases/0.6.0/readme.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
= Runtime Component Operator v0.6.0

== Changelog

All notable changes are documented in the link:++/CHANGELOG.md#0.6.0++[Changelog].

== Installation

The Runtime Component Operator can be installed to:

* watch own namespace
* watch another namespace
* watch multiple namespaces
* watch all namespaces in the cluster

Appropriate cluster role and binding are required to watch another namespace, watch multiple namespaces or watch all namespaces.

---

. Install `RuntimeComponent` Custom Resource Definition (CRD). This needs to be done only ONCE per cluster:
+
[source,sh]
----
kubectl apply -f https://raw.githubusercontent.com/application-stacks/runtime-component-operator/master/deploy/releases/0.6.0/runtime-component-crd.yaml
----

. Install the Runtime Component Operator:

.. Set operator namespace and the namespace to watch:
+
NOTE: Ensure that you replace `<SPECIFY_OPERATOR_NAMESPACE_HERE>` and `<SPECIFY_WATCH_NAMESPACE_HERE>` with proper values:
+
* To watch all namespaces in the cluster, set `WATCH_NAMESPACE='""'`
* To watch multiple namespaces in the cluster, set `WATCH_NAMESPACE` to a comma-separated list of namespaces e.g. `WATCH_NAMESPACE=example-ns-1,example-ns-2,example-ns-3`
+

[source,sh]
----
OPERATOR_NAMESPACE=<SPECIFY_OPERATOR_NAMESPACE_HERE>
WATCH_NAMESPACE=<SPECIFY_WATCH_NAMESPACE_HERE>
----

.. _Optional_: Install cluster-level role-based access. This step can be skipped if the operator is only watching own namespace:
+
[source,sh]
----
curl -L https://raw.githubusercontent.com/application-stacks/runtime-component-operator/master/deploy/releases/0.6.0/runtime-component-cluster-rbac.yaml \
| sed -e "s/RUNTIME_COMPONENT_OPERATOR_NAMESPACE/${OPERATOR_NAMESPACE}/" \
| kubectl apply -f -
----

.. Install the operator:
+
[source,sh]
----
curl -L https://raw.githubusercontent.com/application-stacks/runtime-component-operator/master/deploy/releases/0.6.0/runtime-component-operator.yaml \
| sed -e "s/RUNTIME_COMPONENT_WATCH_NAMESPACE/${WATCH_NAMESPACE}/" \
| kubectl apply -n ${OPERATOR_NAMESPACE} -f -
----

== Uninstallation

To uninstall the operator, run commands from Step 2.3 first and then Step 2.2 (if applicable), but after replacing `kubectl apply` with `kubectl delete`.

To delete the CRD, run command from Step 1, but after replacing `kubectl apply` with `kubectl delete`.

_Deleting the CRD will also delete all `RuntimeComponent` in the cluster_

== Current Limitations

* Knative support is limited. Values specified for `autoscaling`, `resources` and `replicas` parameters would not apply for Knative when enabled using `createKnativeService` parameter.
* The auto-creation of an application definition by kAppNav is not supported when Knative is enabled.
* Monitoring feature does not support integration with Knative Service. Prometheus Operator is required to use ServiceMonitor.
* After the initial deployment of `RuntimeComponent`, any changes to its labels would be applied only when one of the parameters from `spec` is updated.
113 changes: 113 additions & 0 deletions deploy/releases/0.6.0/runtime-component-cluster-rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: runtime-component-operator-RUNTIME_COMPONENT_OPERATOR_NAMESPACE
rules:
- apiGroups:
- ""
resources:
- pods
- services
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
- serviceaccounts
- namespaces
verbs:
- '*'
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- '*'
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- '*'
- apiGroups:
- apps
resourceNames:
- runtime-component-operator
resources:
- deployments/finalizers
verbs:
- update
- apiGroups:
- app.stacks
resources:
- '*'
verbs:
- '*'
- apiGroups:
- image.openshift.io
resources:
- '*'
verbs:
- '*'
- apiGroups:
- route.openshift.io
resources:
- routes
- routes/custom-host
verbs:
- '*'
- apiGroups:
- serving.knative.dev
resources:
- services
verbs:
- '*'
- apiGroups:
- cert-manager.io
resources:
- certificates
verbs:
- '*'
- apiGroups:
- app.k8s.io
resources:
- applications
verbs:
- '*'
- apiGroups:
- apps.openshift.io
resources:
- servicebindingrequests
verbs:
- '*'
- apiGroups:
- networking.k8s.io
- extensions
resources:
- ingresses
verbs:
- '*'
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: runtime-component-operator-RUNTIME_COMPONENT_OPERATOR_NAMESPACE
subjects:
- kind: ServiceAccount
name: runtime-component-operator
namespace: RUNTIME_COMPONENT_OPERATOR_NAMESPACE
roleRef:
kind: ClusterRole
name: runtime-component-operator-RUNTIME_COMPONENT_OPERATOR_NAMESPACE
apiGroup: rbac.authorization.k8s.io
Loading

0 comments on commit bab34e0

Please sign in to comment.