Skip to content

Commit c294aa4

Browse files
committed
add custom metrics autoscaler operator
1 parent 0509237 commit c294aa4

File tree

7 files changed

+80
-0
lines changed

7 files changed

+80
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# OpenShift Custom Metrics Autoscaler
2+
3+
Install OpenShift Custom Metrics Autoscaler.
4+
5+
Do not use the `base` directory directly, as you will need to patch the `channel` based on the version of OpenShift you are using, or the version of the operator you want to use.
6+
7+
The current *overlays* available are for the following channels:
8+
9+
* [stable](operator/overlays/stable)
10+
11+
## Usage
12+
13+
If you have cloned the `gitops-catalog` repository, you can install Red Hat OpenShift GitOps based on the overlay of your choice by running from the root (`gitops-catalog`) directory.
14+
15+
```
16+
oc apply -k openshift-custom-metrics-autoscaler/operator/overlays/<channel>
17+
```
18+
19+
Or, without cloning:
20+
21+
```
22+
oc apply -k https://github.com/redhat-cop/gitops-catalog/openshift-custom-metrics-autoscaler/operator/overlays/<channel>
23+
```
24+
25+
As part of a different overlay in your own GitOps repo:
26+
27+
```
28+
apiVersion: kustomize.config.k8s.io/v1beta1
29+
kind: Kustomization
30+
resources:
31+
- https://github.com/redhat-cop/gitops-catalog/openshift-custom-metrics-autoscaler/operator/overlays/<channel>?ref=main
32+
```
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
namespace: openshift-keda
5+
6+
resources:
7+
- namespace.yaml
8+
- subscription.yaml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: openshift-keda
5+
annotations:
6+
openshift.io/display-name: "OpenShift Keda Operator"
7+
labels:
8+
openshift.io/cluster-monitoring: 'true'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: operators.coreos.com/v1
2+
kind: OperatorGroup
3+
metadata:
4+
name: openshift-keda
5+
namespace: openshift-keda
6+
spec: {}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: operators.coreos.com/v1alpha1
2+
kind: Subscription
3+
metadata:
4+
name: openshift-custom-metrics-autoscaler-operator
5+
spec:
6+
channel: patch-me-see-overlays-dir
7+
installPlanApproval: Automatic
8+
name: openshift-custom-metrics-autoscaler-operator
9+
source: redhat-operators
10+
sourceNamespace: openshift-marketplace
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
5+
6+
resources:
7+
- ../../base
8+
patches:
9+
- path: patch-channel.yaml
10+
target:
11+
group: operators.coreos.com
12+
kind: Subscription
13+
version: v1alpha1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- op: replace
2+
path: /spec/channel
3+
value: 'stable'

0 commit comments

Comments
 (0)