Skip to content

Commit

Permalink
add disable instance component (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
strangiato authored Jul 26, 2024
1 parent 27c7b52 commit a4fc1f4
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# disable-default-instance

## Purpose
This component disables the creation of a default ArgoCD instance in the `openshift-gitops` namespace.

For more information on this option please refer to the following:

[5 global environment variables provided by OpenShift GitOps](https://developers.redhat.com/articles/2023/03/06/5-global-environment-variables-provided-openshift-gitops)

## Usage

This component can be added to a base by adding the `components` section to your overlay `kustomization.yaml` file:

```
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
components:
- ../../components/disable-default-instance
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

patches:
- path: patch-subscription.yaml
target:
kind: Subscription
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: openshift-gitops-operator
spec:
config:
env:
- name: DISABLE_DEFAULT_ARGOCD_INSTANCE
value: true

0 comments on commit a4fc1f4

Please sign in to comment.