Skip to content

Commit 5bb929f

Browse files
authored
Merge pull request #393 from strangiato/lws
add leader worker set operator
2 parents 0509237 + 762229c commit 5bb929f

File tree

11 files changed

+112
-0
lines changed

11 files changed

+112
-0
lines changed

leader-worker-set/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Leader Worker Set Operator
2+
3+
Install Leader Worker Set Operator.
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-v1.0](operator/overlays/stable-v1.0)
10+
* [v1.10](operator/overlays/v1.10)
11+
* [v1.11](operator/overlays/v1.11)
12+
* [v22.9](operator/overlays/v22.9)
13+
* [v23.3](operator/overlays/v23.3)
14+
15+
## Usage
16+
17+
If you have cloned the `gitops-catalog` repository, you can install NVIDIA GPU Operator based on the overlay of your choice by running from the root (`gitops-catalog`) directory.
18+
19+
```
20+
oc apply -k leader-worker-set/operator/overlays/<channel>
21+
```
22+
23+
Or, without cloning:
24+
25+
```
26+
oc apply -k https://github.com/redhat-cop/gitops-catalog/leader-worker-set/operator/overlays/<channel>
27+
```
28+
29+
As part of a different overlay in your own GitOps repo:
30+
31+
```
32+
apiVersion: kustomize.config.k8s.io/v1beta1
33+
kind: Kustomization
34+
resources:
35+
- https://github.com/redhat-cop/gitops-catalog/leader-worker-set/operator/overlays/<channel>?ref=main
36+
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
commonAnnotations:
5+
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
6+
7+
resources:
8+
- ../../../operator/overlays/stable-v1.0
9+
- ../../../instance/overlays/default
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
namespace: openshift-lws-operator
5+
6+
resources:
7+
- leaderworkeset-operator.yaml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
kind: LeaderWorkerSetOperator
2+
apiVersion: operator.openshift.io/v1
3+
metadata:
4+
name: cluster
5+
spec:
6+
logLevel: Normal
7+
managementState: Managed
8+
operatorLogLevel: Normal
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- ../../base
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
namespace: openshift-lws-operator
5+
6+
resources:
7+
- namespace.yaml
8+
- operator-group.yaml
9+
- 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+
annotations:
5+
openshift.io/display-name: "Leader Worker Set Operator"
6+
labels:
7+
openshift.io/cluster-monitoring: 'true'
8+
name: openshift-lws-operator
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: operators.coreos.com/v1
2+
kind: OperatorGroup
3+
metadata:
4+
name: openshift-lws-operator
5+
spec:
6+
targetNamespaces:
7+
- openshift-lws-operator
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: leader-worker-set
5+
spec:
6+
channel: patch-me-see-overlays-dir
7+
installPlanApproval: Automatic
8+
name: leader-worker-set
9+
source: redhat-operators
10+
sourceNamespace: openshift-marketplace
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- ../../base
6+
7+
patches:
8+
- target:
9+
kind: Subscription
10+
path: patch-channel.yaml

0 commit comments

Comments
 (0)