Skip to content

Commit

Permalink
add small tweak to install (#1041)
Browse files Browse the repository at this point in the history
Signed-off-by: craig <[email protected]>

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED

create openshift overlay

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
maleck13 authored Nov 21, 2024
1 parent 27316d1 commit be39a2b
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 9 deletions.
11 changes: 10 additions & 1 deletion config/install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,21 @@
> Note: for multiple clusters, it would make sense to do the installation via a tool like [argocd](https://argo-cd.readthedocs.io/en/stable/). For other methods of addressing multiple clusters take a look at the [kubectl docs](https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/)
## Setup the environment
## Setup the environment

> Note this uses the community operatorhub catalog. If you are installing on OpenShift and want to use the redhat provided catalog use the second command.

```
# community catalog
kubectl apply -k config/install/standard
```

```
# redhat catalog
kubectl apply -k config/install/openshift
```

Verify both Kuadrant and sail operators are installed. Note, that this can take a while. You can also take a look at the subscription and installplan resource to help with debugging but the end state should be as below:

```
Expand Down
11 changes: 11 additions & 0 deletions config/install/openshift/catalog-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: sailoperator
namespace: gateway-system
spec:
channel: candidates
installPlanApproval: Automatic
name: sailoperator
source: community-operators
sourceNamespace: openshift-marketplace
6 changes: 6 additions & 0 deletions config/install/openshift/kuadrant-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: kuadrant-operator-catalog
spec:
image: quay.io/kuadrant/kuadrant-operator-catalog:v1.0.0-rc4 #change this to the version you want to install
19 changes: 19 additions & 0 deletions config/install/openshift/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../standard

patches:
- target:
group: operators.coreos.com
version: v1alpha1
kind: Subscription
name: sailoperator
path: catalog-patch.yaml
- target:
group: operators.coreos.com
version: v1alpha1
kind: CatalogSource
name: kuadrant-operator-catalog
path: kuadrant-version.yaml
26 changes: 26 additions & 0 deletions config/install/openshift/sail-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: sail
name: gateway-system
---
kind: OperatorGroup
apiVersion: operators.coreos.com/v1
metadata:
name: sail
namespace: gateway-system
spec:
upgradeStrategy: Default
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: sailoperator
namespace: gateway-system
spec:
channel: candidates
installPlanApproval: Automatic
name: sailoperator
source: operatorhubio-catalog
sourceNamespace: openshift-marketplace
6 changes: 6 additions & 0 deletions config/install/standard/kuadrant-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: kuadrant-operator-catalog
spec:
image: quay.io/kuadrant/kuadrant-operator-catalog:v1.0.0-rc4 #change this to the version you want to install
18 changes: 12 additions & 6 deletions config/install/standard/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ resources:
- ../../deploy/olm

patches:
- patch: |-
apiVersion: operators.coreos.com/v1alpha1
- target:
group: operators.coreos.com
version: v1alpha1
kind: CatalogSource
metadata:
name: kuadrant-operator-catalog
spec:
image: quay.io/kuadrant/kuadrant-operator-catalog:v1.0.0-rc4 #change this to the version you want to install
name: kuadrant-operator-catalog
path: kuadrant-version.yaml
# - patch: |-
# apiVersion: operators.coreos.com/v1alpha1
# kind: CatalogSource
# metadata:
# name: kuadrant-operator-catalog
# spec:
# image: quay.io/kuadrant/kuadrant-operator-catalog:v1.0.0-rc4 #change this to the version you want to install
4 changes: 2 additions & 2 deletions config/install/standard/sail-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
channel: candidates
installPlanApproval: Automatic
name: sailoperator
source: community-operators
sourceNamespace: openshift-marketplace
source: operatorhubio-catalog
sourceNamespace: olm

0 comments on commit be39a2b

Please sign in to comment.