Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions crossplane-system/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Crossplane System

Install Crossplane System.

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 Crossplane System based on the overlay of your choice by running from the root (`gitops-catalog`) directory.

```
oc apply -k crossplane-system/operator/overlays/<channel>
```

Or, without cloning:

```
oc apply -k https://github.com/redhat-cop/gitops-catalog/crossplane-system/operator/overlays/<channel>
```

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/crossplane-system/operator/overlays/<channel>?ref=main
```
6 changes: 6 additions & 0 deletions crossplane-system/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- namespace.yaml
- role-binding.yaml
6 changes: 6 additions & 0 deletions crossplane-system/base/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: crossplane-system
labels:
openshift.io/cluster-monitoring: "true"
12 changes: 12 additions & 0 deletions crossplane-system/base/role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: nonroot-v2-scc
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:openshift:scc:nonroot-v2
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: system:serviceaccounts:crossplane-system
11 changes: 11 additions & 0 deletions crossplane-system/overlays/stable/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

helmCharts:
- name: crossplane
releaseName: crossplane
repo: https://charts.crossplane.io/stable
namespace: crossplane-system
Loading