Update namespace to argo-workflows and integrate with Terraform
This commit is contained in:
parent
dd17a6b5dc
commit
7f446c700a
@ -1,26 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: environment-provisioner-infra
|
||||
namespace: argocd
|
||||
labels:
|
||||
app.kubernetes.io/name: environment-provisioner
|
||||
app.kubernetes.io/component: infrastructure
|
||||
app.kubernetes.io/managed-by: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
# Update this URL to point to your osmos-infra repository in Gitea
|
||||
repoURL: https://gitea.os-tf-qa.onlinesales.ai/giteaAdmin/osmos-infra.git
|
||||
targetRevision: HEAD
|
||||
path: environment-provisioner
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: argo
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
@ -5,7 +5,7 @@ apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: gitea-credentials
|
||||
namespace: argo
|
||||
namespace: argo-workflows
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
@ -30,7 +30,7 @@ apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: argocd-credentials
|
||||
namespace: argo
|
||||
namespace: argo-workflows
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
|
||||
@ -56,7 +56,7 @@ rules:
|
||||
verbs: ["get", "list", "patch", "update"]
|
||||
|
||||
---
|
||||
# Bind the workflow-executor role to the default service account in argo namespace
|
||||
# Bind the workflow-executor role to the service accounts in argo-workflows namespace
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
@ -68,10 +68,10 @@ roleRef:
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: default
|
||||
namespace: argo
|
||||
namespace: argo-workflows
|
||||
- kind: ServiceAccount
|
||||
name: argo
|
||||
namespace: argo
|
||||
name: argo-workflows
|
||||
namespace: argo-workflows
|
||||
- kind: ServiceAccount
|
||||
name: argo-server
|
||||
namespace: argo
|
||||
name: argo-workflows-server
|
||||
namespace: argo-workflows
|
||||
|
||||
@ -2,9 +2,9 @@ apiVersion: argoproj.io/v1alpha1
|
||||
kind: WorkflowTemplate
|
||||
metadata:
|
||||
name: environment-provisioner
|
||||
namespace: argo
|
||||
namespace: argo-workflows
|
||||
spec:
|
||||
serviceAccountName: argo
|
||||
serviceAccountName: argo-workflows
|
||||
arguments:
|
||||
parameters:
|
||||
- name: namespace
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user