diff --git a/redhat-connectivity-link/README.md b/redhat-connectivity-link/README.md new file mode 100644 index 00000000..423562d1 --- /dev/null +++ b/redhat-connectivity-link/README.md @@ -0,0 +1,32 @@ +# Red Hat Connectivity Link + +Install Red Hat Connectivity Link. + +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. + +The current _overlays_ available are for the following channels: + +- [stable](operator/overlays/stable) + +## Usage + +If you have cloned the `gitops-catalog` repository, you can install Red Hat Connectivity Link based on the overlay of your choice by running from the root (`gitops-catalog`) directory. + +``` +oc apply -k redhat-connectivity-link/operator/overlays/ +``` + +Or, without cloning: + +``` +oc apply -k https://github.com/redhat-cop/gitops-catalog/redhat-connectivity-link/operator/overlays/ +``` + +As part of a different overlay in your own GitOps repo: + +``` +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - https://github.com/redhat-cop/gitops-catalog/redhat-connectivity-link/operator/overlays/?ref=main +``` diff --git a/redhat-connectivity-link/instance/base/kuadrant.yaml b/redhat-connectivity-link/instance/base/kuadrant.yaml new file mode 100644 index 00000000..4f7ebab0 --- /dev/null +++ b/redhat-connectivity-link/instance/base/kuadrant.yaml @@ -0,0 +1,5 @@ +apiVersion: kuadrant.io/v1beta1 +kind: Kuadrant +metadata: + name: kuadrant + namespace: kuadrant-system diff --git a/redhat-connectivity-link/instance/base/kustomization.yaml b/redhat-connectivity-link/instance/base/kustomization.yaml new file mode 100644 index 00000000..07a40b3c --- /dev/null +++ b/redhat-connectivity-link/instance/base/kustomization.yaml @@ -0,0 +1,6 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - kuadrant.yaml diff --git a/redhat-connectivity-link/instance/overlays/default/kustomization.yaml b/redhat-connectivity-link/instance/overlays/default/kustomization.yaml new file mode 100644 index 00000000..ef6e263c --- /dev/null +++ b/redhat-connectivity-link/instance/overlays/default/kustomization.yaml @@ -0,0 +1,6 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - ../../base diff --git a/redhat-connectivity-link/operator/base/kustomization.yaml b/redhat-connectivity-link/operator/base/kustomization.yaml new file mode 100644 index 00000000..aaa43297 --- /dev/null +++ b/redhat-connectivity-link/operator/base/kustomization.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - namespace.yaml + - operatorgroup.yaml + - subscription.yaml diff --git a/redhat-connectivity-link/operator/base/namespace.yaml b/redhat-connectivity-link/operator/base/namespace.yaml new file mode 100644 index 00000000..f80cb37c --- /dev/null +++ b/redhat-connectivity-link/operator/base/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: kuadrant-system diff --git a/redhat-connectivity-link/operator/base/operatorgroup.yaml b/redhat-connectivity-link/operator/base/operatorgroup.yaml new file mode 100644 index 00000000..215f4f14 --- /dev/null +++ b/redhat-connectivity-link/operator/base/operatorgroup.yaml @@ -0,0 +1,7 @@ +kind: OperatorGroup +apiVersion: operators.coreos.com/v1 +metadata: + name: kuadrant + namespace: kuadrant-system +spec: + upgradeStrategy: Default diff --git a/redhat-connectivity-link/operator/base/subscription.yaml b/redhat-connectivity-link/operator/base/subscription.yaml new file mode 100644 index 00000000..a5b513e8 --- /dev/null +++ b/redhat-connectivity-link/operator/base/subscription.yaml @@ -0,0 +1,11 @@ +apiVersion: operators.coreos.com/v1alpha1 +kind: Subscription +metadata: + name: rhcl-operator + namespace: kuadrant-system +spec: + channel: patch-me-see-overlays-dir + installPlanApproval: Automatic + name: rhcl-operator + source: redhat-operators + sourceNamespace: openshift-marketplace diff --git a/redhat-connectivity-link/operator/overlays/stable/kustomization.yaml b/redhat-connectivity-link/operator/overlays/stable/kustomization.yaml new file mode 100644 index 00000000..14d28610 --- /dev/null +++ b/redhat-connectivity-link/operator/overlays/stable/kustomization.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - ../../base +patches: + - path: patch-channel.yaml + target: + group: operators.coreos.com + kind: Subscription + name: rhcl-operator + namespace: kuadrant-system diff --git a/redhat-connectivity-link/operator/overlays/stable/patch-channel.yaml b/redhat-connectivity-link/operator/overlays/stable/patch-channel.yaml new file mode 100644 index 00000000..6642eb17 --- /dev/null +++ b/redhat-connectivity-link/operator/overlays/stable/patch-channel.yaml @@ -0,0 +1,3 @@ +- op: replace + path: /spec/channel + value: stable