-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changing init_GitOps shell script to reflect recent changed in the he…
…lm chart openshift-gitops
- Loading branch information
1 parent
2069654
commit 2508950
Showing
5 changed files
with
155 additions
and
125 deletions.
There are no files selected for viewing
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
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
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,13 @@ | ||
#!/bin/bash | ||
#set -euf -o pipefail | ||
oc delete Application.argoproj.io -n openshift-gitops --all | ||
oc delete Applicationset.argoproj.io -n openshift-gitops --all | ||
oc delete Application.argoproj.io -n openshift-gitops --all | ||
sleep 5 | ||
oc delete Appproject -A --all | ||
oc delete subscription openshift-gitops-operator -n openshift-gitops-operator | ||
oc delete operatorgroup openshift-gitops-operator -n openshift-gitops-operator | ||
for i in `oc get crd | grep argoproj.io | awk -F" " '{print $1}'`; do oc delete crd $i; done | ||
|
||
oc delete project openshift-gitops | ||
oc delete project openshift-gitops-operator |
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
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,84 @@ | ||
--- | ||
# Configure openshift-gitops operator. This will be enabled via init_GitOps.sh script | ||
gitopsinstances: | ||
openshift_gitops: | ||
enabled: false | ||
namespace: openshift-gitops | ||
clusterAdmin: disabled | ||
syncwave: 10 | ||
server: | ||
route: | ||
enabled: true | ||
generic_config: | ||
disableAdmin: true | ||
resourceTrackingMethod: annotation | ||
kustomizeBuildOptions: "--enable-helm" | ||
appset: {} | ||
repo: {} | ||
controller: {} | ||
sso: | ||
dex: | ||
openShiftOAuth: true | ||
ha: {} | ||
redis: {} | ||
rbac: | ||
defaultRole: 'role:none' | ||
policy: |- | ||
# Access Control | ||
g, system:cluster-admins, role:admin | ||
g, cluster-admin, role:admin | ||
p, role:none, applications, get, */*, deny | ||
p, role:none, certificates, get, *, deny | ||
p, role:none, clusters, get, *, deny | ||
p, role:none, repositories, get, *, deny | ||
p, role:none, projects, get, *, deny | ||
p, role:none, accounts, get, *, deny | ||
p, role:none, gpgkeys, get, *, deny | ||
scopes: '[groups]' | ||
resourceExclusions: |- | ||
# resources to be excluded | ||
- apiGroups: | ||
- tekton.dev | ||
clusters: | ||
- '*' | ||
kinds: | ||
- TaskRun | ||
- PipelineRun | ||
# Enable default health checks. | ||
# This will create some default health checks I usually add. | ||
# * ClusterLogging, * Application (Argo CD), * Lokistack, * Subcription, * Central (ACS), InstallPlan | ||
default_resourceHealthChecks: true | ||
|
||
# Deploy openshift-gitops operator. This will be enabled via init_GitOps.sh script | ||
helper-operator: | ||
enabled: false | ||
operators: | ||
openshift-gitops-operator: | ||
enabled: true | ||
syncwave: '0' | ||
namespace: | ||
name: openshift-gitops-operator | ||
create: true | ||
subscription: | ||
channel: latest | ||
approval: Automatic | ||
operatorName: openshift-gitops-operator | ||
source: redhat-operators | ||
sourceNamespace: openshift-marketplace | ||
operatorgroup: | ||
create: true | ||
notownnamespace: true | ||
|
||
# Deploy openshift-gitops operator. This will be enabled via init_GitOps.sh script | ||
helper-status-checker: | ||
enabled: false | ||
|
||
checks: | ||
|
||
- operatorName: openshift-gitops-operator | ||
namespace: | ||
name: openshift-gitops-operator | ||
syncwave: 3 | ||
|
||
serviceAccount: | ||
name: "status-checker-gitops" |