-
Notifications
You must be signed in to change notification settings - Fork 355
clearer instruction to disable default argocd instance #412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -119,7 +119,20 @@ openshift-gitops-server-86df579bbf-zz9lx 1/1 Running 0 | |||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| When installing the OpenShift GitOps operator to ROSA/OSD, cluster administrators may wish to exclude users from modifying resources within the *openshift-** namespaces, including the *openshift-gitops* namespace which is the default location for an Argo CD install. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| To disable the default ‘ready-to-use’ installation of Argo CD: as an admin, update the existing Subscription Object for Gitops Operator and add `DISABLE_DEFAULT_ARGOCD_INSTANCE = true` to the spec. | ||||||||||||||||||||||||||||
| To disable the default ‘ready-to-use’ installation of Argo CD: as an admin, update the existing Subscription Object for Gitops Operator and add `DISABLE_DEFAULT_ARGOCD_INSTANCE = true` to the `subscriptions.operators.coreos.com.spec.config.env` resource as follows - | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||
| apiVersion: operators.coreos.com/v1alpha1 | ||||||||||||||||||||||||||||
| kind: Subscription | ||||||||||||||||||||||||||||
| name: openshift-gitops-operator | ||||||||||||||||||||||||||||
| namespace: openshift-operators | ||||||||||||||||||||||||||||
| spec: | ||||||||||||||||||||||||||||
| config: | ||||||||||||||||||||||||||||
|
Comment on lines
+125
to
+130
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Add the missing
Proposed fix apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
+metadata:
name: openshift-gitops-operator
namespace: openshift-operators📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||
| - name: DISABLE_DEFAULT_ARGOCD_INSTANCE | ||||||||||||||||||||||||||||
| value: "TRUE" | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| **Warning**: setting this option to true will cause the existing Argo CD install in the *openshift-gitops* namespace to be deleted. Argo CD instances in other namespaces should not be affected. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Declare the fenced block as YAML.
Use
```yamlinstead of an untyped fence to satisfy markdownlint MD040 and provide correct syntax highlighting.🧰 Tools
🪛 markdownlint-cli2 (0.23.1)
[warning] 124-124: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents
Source: Linters/SAST tools