-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add disable instance component (#319)
- Loading branch information
1 parent
27c7b52
commit a4fc1f4
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
openshift-gitops-operator/operator/components/disable-default-instance/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
7 changes: 7 additions & 0 deletions
7
openshift-gitops-operator/operator/components/disable-default-instance/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
...hift-gitops-operator/operator/components/disable-default-instance/patch-subscription.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |