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
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: gitea-credentials
|
name: gitea-credentials
|
||||||
namespace: argo
|
namespace: argo-workflows
|
||||||
spec:
|
spec:
|
||||||
refreshInterval: 1h
|
refreshInterval: 1h
|
||||||
secretStoreRef:
|
secretStoreRef:
|
||||||
@ -30,7 +30,7 @@ apiVersion: external-secrets.io/v1beta1
|
|||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: argocd-credentials
|
name: argocd-credentials
|
||||||
namespace: argo
|
namespace: argo-workflows
|
||||||
spec:
|
spec:
|
||||||
refreshInterval: 1h
|
refreshInterval: 1h
|
||||||
secretStoreRef:
|
secretStoreRef:
|
||||||
|
|||||||
@ -56,7 +56,7 @@ rules:
|
|||||||
verbs: ["get", "list", "patch", "update"]
|
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
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
@ -68,10 +68,10 @@ roleRef:
|
|||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: default
|
name: default
|
||||||
namespace: argo
|
namespace: argo-workflows
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: argo
|
name: argo-workflows
|
||||||
namespace: argo
|
namespace: argo-workflows
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: argo-server
|
name: argo-workflows-server
|
||||||
namespace: argo
|
namespace: argo-workflows
|
||||||
|
|||||||
@ -2,9 +2,9 @@ apiVersion: argoproj.io/v1alpha1
|
|||||||
kind: WorkflowTemplate
|
kind: WorkflowTemplate
|
||||||
metadata:
|
metadata:
|
||||||
name: environment-provisioner
|
name: environment-provisioner
|
||||||
namespace: argo
|
namespace: argo-workflows
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: argo
|
serviceAccountName: argo-workflows
|
||||||
arguments:
|
arguments:
|
||||||
parameters:
|
parameters:
|
||||||
- name: namespace
|
- name: namespace
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user