mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-16 18:02:55 +02:00
Fix MariaDB operator deployment namespace issue
- Remove namespace from kustomization.yaml (was putting Apps in wrong namespace) - Change destination to argocd namespace (Application resources must be there) - Add labels for tracking parent app
This commit is contained in:
@@ -13,7 +13,7 @@ spec:
|
|||||||
path: mariadb-operator
|
path: mariadb-operator
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: mariadb-system
|
namespace: argocd
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: mariadb-system
|
|
||||||
resources:
|
resources:
|
||||||
- operator-crds-helm.yaml
|
- operator-crds-helm.yaml
|
||||||
- operator-helm.yaml
|
- operator-helm.yaml
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ kind: Application
|
|||||||
metadata:
|
metadata:
|
||||||
name: mariadb-operator-crds
|
name: mariadb-operator-crds
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/instance: mariadb-operator-install
|
||||||
spec:
|
spec:
|
||||||
destination:
|
destination:
|
||||||
namespace: mariadb-system
|
namespace: mariadb-system
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ kind: Application
|
|||||||
metadata:
|
metadata:
|
||||||
name: mariadb-operator
|
name: mariadb-operator
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/instance: mariadb-operator-install
|
||||||
spec:
|
spec:
|
||||||
destination:
|
destination:
|
||||||
namespace: mariadb-system
|
namespace: mariadb-system
|
||||||
|
|||||||
Reference in New Issue
Block a user