-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Adjust AIOps SA for sync jobs
- Loading branch information
Showing
41 changed files
with
417 additions
and
157 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
File renamed without changes.
File renamed without changes.
40 changes: 40 additions & 0 deletions
40
config/argocd-cloudpaks/cp4aiops/templates/020-cloudpaks-aimgr-role.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,40 @@ | ||
{{- $aimgr := .Values.modules.aimgr }} | ||
{{- if eq ( default false $aimgr ) true }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "20" | ||
creationTimestamp: null | ||
name: ibm-aiops-aimgr-role | ||
namespace: "{{.Values.metadata.argocd_app_namespace}}" | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["pods"] | ||
verbs: ["get", "list"] | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: ["get", "list", "create", "delete", "update", "patch"] | ||
- apiGroups: [""] | ||
resources: ["serviceaccounts"] | ||
verbs: ["get", "list", "create", "update", "patch"] | ||
- apiGroups: ["base.automation.ibm.com"] | ||
resources: ["automationbases"] | ||
verbs: ["get", "list"] | ||
- apiGroups: ["core.automation.ibm.com"] | ||
resources: ["automationuiconfigs"] | ||
verbs: ["get", "list"] | ||
- apiGroups: ["project.openshift.io"] | ||
resources: ["projects"] | ||
verbs: ["get"] | ||
- apiGroups: ["operator.openshift.io"] | ||
resources: ["ingresscontrollers"] | ||
verbs: ["get"] | ||
- apiGroups: ["route.openshift.io"] | ||
resources: ["routes"] | ||
verbs: ["get"] | ||
- apiGroups: ["apps"] | ||
resources: ["deployments"] | ||
verbs: ["get", "list", "patch"] | ||
{{- end }} |
13 changes: 13 additions & 0 deletions
13
config/argocd-cloudpaks/cp4aiops/templates/020-cloudpaks-default-role.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,13 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "21" | ||
creationTimestamp: null | ||
name: ibm-aiops-role | ||
namespace: default | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["namespaces"] | ||
verbs: ["get", "patch"] |
19 changes: 19 additions & 0 deletions
19
config/argocd-cloudpaks/cp4aiops/templates/020-cloudpaks-emgr-role.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,19 @@ | ||
{{- $emgr := .Values.modules.emgr }} | ||
{{- if eq ( default false $emgr ) true }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "20" | ||
creationTimestamp: null | ||
name: ibm-aiops-emgr-role | ||
namespace: "{{.Values.metadata.argocd_app_namespace}}-emgr" | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: ["get", "list", "create", "update", "patch", "delete"] | ||
- apiGroups: ["cem.ibm.com"] | ||
resources: ["cemformations"] | ||
verbs: ["get"] | ||
{{- end }} |
26 changes: 26 additions & 0 deletions
26
config/argocd-cloudpaks/cp4aiops/templates/020-cloudpaks-ingress-roles.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,26 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "21" | ||
creationTimestamp: null | ||
name: ibm-aiops-ingress-operator-role | ||
namespace: openshift-ingress-operator | ||
rules: | ||
- apiGroups: ["operator.openshift.io"] | ||
resources: ["ingresscontrollers"] | ||
verbs: ["get"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "21" | ||
creationTimestamp: null | ||
name: ibm-aiops-ingress-role | ||
namespace: openshift-ingress | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: ["get"] |
20 changes: 20 additions & 0 deletions
20
config/argocd-cloudpaks/cp4aiops/templates/021-cloudpaks-aimgr-binding.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,20 @@ | ||
{{- $aimgr := .Values.modules.aimgr }} | ||
{{- if eq ( default false $aimgr ) true }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "21" | ||
creationTimestamp: null | ||
name: ibm-aiops-aimgr-binding | ||
namespace: "{{.Values.metadata.argocd_app_namespace}}" | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: ibm-aiops-aimgr-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: "{{.Values.serviceaccount.ibm_cloudpaks_installer}}" | ||
namespace: "{{.Values.metadata.argocd_namespace}}" | ||
{{- end }} |
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
20 changes: 20 additions & 0 deletions
20
config/argocd-cloudpaks/cp4aiops/templates/021-cloudpaks-emgr-binding.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,20 @@ | ||
{{- $emgr := .Values.modules.emgr }} | ||
{{- if eq ( default false $emgr ) true }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "21" | ||
creationTimestamp: null | ||
name: ibm-aiops-emgr-binding | ||
namespace: "{{.Values.metadata.argocd_app_namespace}}-emgr" | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: ibm-aiops-emgr-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: "{{.Values.serviceaccount.ibm_cloudpaks_installer}}" | ||
namespace: "{{.Values.metadata.argocd_namespace}}" | ||
{{- end }} |
34 changes: 34 additions & 0 deletions
34
config/argocd-cloudpaks/cp4aiops/templates/021-cloudpaks-ingress-bindings.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,34 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "21" | ||
creationTimestamp: null | ||
name: ibm-aiops-ingress-operator-binding | ||
namespace: openshift-ingress-operator | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: ibm-aiops-ingress-operator-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: "{{.Values.serviceaccount.ibm_cloudpaks_installer}}" | ||
namespace: "{{.Values.metadata.argocd_namespace}}" | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "21" | ||
creationTimestamp: null | ||
name: ibm-aiops-ingress-binding | ||
namespace: openshift-ingress | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: ibm-aiops-ingress-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: "{{.Values.serviceaccount.ibm_cloudpaks_installer}}" | ||
namespace: "{{.Values.metadata.argocd_namespace}}" |
File renamed without changes.
71 changes: 71 additions & 0 deletions
71
config/argocd-cloudpaks/cp4aiops/templates/110-cp4aiops-aimgr-app.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,71 @@ | ||
{{- $aimgr := .Values.modules.aimgr }} | ||
{{- if eq ( default false $aimgr ) true }} | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
creationTimestamp: null | ||
name: cp4aiops-aimgr | ||
namespace: openshift-gitops | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "110" | ||
spec: | ||
destination: | ||
namespace: {{.Values.metadata.argocd_app_namespace}} | ||
server: https://kubernetes.default.svc | ||
ignoreDifferences: | ||
- group: argoproj.io | ||
jsonPointers: | ||
- /spec/source/repoURL | ||
- /spec/source/targetRevision | ||
- /status | ||
kind: Application | ||
- group: noi.ibm.com | ||
jsonPointers: | ||
- /spec/clusterDomain | ||
kind: noi | ||
- group: v1 | ||
jsonPointers: | ||
- /metadata/labels | ||
kind: Namespace | ||
project: default | ||
source: | ||
helm: | ||
parameters: | ||
- name: argocd_app_name | ||
value: ${ARGOCD_APP_NAME} | ||
- name: argocd_app_namespace | ||
value: ${ARGOCD_APP_NAMESPACE} | ||
- name: automation_base_instance_name | ||
value: {{.Values.automation_base_instance_name}} | ||
- name: automation_ui_config_instance_name | ||
value: {{.Values.metadata.automation_ui_config_instance_name}} | ||
- name: metadata.argocd_app_namespace | ||
value: {{.Values.metadata.argocd_app_namespace}} | ||
- name: repoURL | ||
value: ${ARGOCD_APP_SOURCE_REPO_URL} | ||
- name: serviceaccount.argocd_application_controller | ||
value: {{.Values.serviceaccount.argocd_application_controller}} | ||
- name: storageclass.rwo | ||
value: {{.Values.storageclass.rwo}} | ||
- name: storageclass.rwx | ||
value: {{.Values.storageclass.rwx}} | ||
- name: targetRevision | ||
value: ${ARGOCD_APP_SOURCE_TARGET_REVISION} | ||
path: config/cloudpaks/cp4aiops/install-aimgr | ||
repoURL: {{.Values.repoURL}} | ||
targetRevision: {{.Values.targetRevision}} | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
status: | ||
health: {} | ||
summary: {} | ||
sync: | ||
comparedTo: | ||
destination: {} | ||
source: | ||
repoURL: "" | ||
status: "" | ||
{{- end }} |
69 changes: 69 additions & 0 deletions
69
config/argocd-cloudpaks/cp4aiops/templates/120-cp4aiops-emgr-app.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,69 @@ | ||
{{- $emgr := .Values.modules.emgr }} | ||
{{- if eq ( default false $emgr ) true }} | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
creationTimestamp: null | ||
name: cp4aiops-emgr | ||
namespace: openshift-gitops | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "120" | ||
spec: | ||
destination: | ||
namespace: "{{.Values.metadata.argocd_app_namespace}}-emgr" | ||
server: https://kubernetes.default.svc | ||
ignoreDifferences: | ||
- group: argoproj.io | ||
jsonPointers: | ||
- /spec/source/repoURL | ||
- /spec/source/targetRevision | ||
- /status | ||
kind: Application | ||
- group: noi.ibm.com | ||
jsonPointers: | ||
- /spec/clusterDomain | ||
kind: noi | ||
- group: v1 | ||
jsonPointers: | ||
- /metadata/labels | ||
kind: Namespace | ||
project: default | ||
source: | ||
helm: | ||
parameters: | ||
- name: argocd_app_name | ||
value: ${ARGOCD_APP_NAME} | ||
- name: argocd_app_namespace | ||
value: ${ARGOCD_APP_NAMESPACE} | ||
- name: cluster_domain | ||
value: {{.Values.cluster_domain}} | ||
- name: metadata.argocd_app_namespace | ||
value: "{{.Values.metadata.argocd_app_namespace}}-emgr" | ||
- name: repoURL | ||
value: ${ARGOCD_APP_SOURCE_REPO_URL} | ||
- name: serviceaccount.argocd_application_controller | ||
value: {{.Values.serviceaccount.argocd_application_controller}} | ||
- name: storageclass.rwo | ||
value: {{.Values.storageclass.rwo}} | ||
- name: storageclass.rwx | ||
value: {{.Values.storageclass.rwx}} | ||
- name: targetRevision | ||
value: ${ARGOCD_APP_SOURCE_TARGET_REVISION} | ||
path: config/cloudpaks/cp4aiops/install-emgr | ||
repoURL: {{.Values.repoURL}} | ||
targetRevision: {{.Values.targetRevision}} | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
status: | ||
health: {} | ||
summary: {} | ||
sync: | ||
comparedTo: | ||
destination: {} | ||
source: | ||
repoURL: "" | ||
status: "" | ||
{{- end }} |
Oops, something went wrong.