Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

namespace #17

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions argocd-apps/app-hemlfile-core.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argocd
name: core
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
Expand All @@ -21,7 +21,10 @@ spec:
destination:
server: https://kubernetes.default.svc
syncPolicy:
automated: {}
managedNamespaceMetadata:
labels:
argocd.argoproj.io/managed-by: argocd
#automated: {}
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
# - ServerSideApply=true
2 changes: 1 addition & 1 deletion helmfile.d/environments/local.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
core_namespaces:
installed: true
installed: false

ingress_nginx:
installed: true
Expand Down
11 changes: 11 additions & 0 deletions helmfile.d/releases/01-core/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ releases:
verify: false
missingFileHandler: Warn
installed: {{ .Values.ingress_nginx.installed }}
hooks:
- events: ["postsync"]
showlogs: true
command: "kubectl"
args:
- "wait"
- "--namespace={{ .Values.ingress_nginx.ingress_namespace }}"
- "--for=condition=ready"
- "pod"
- "--selector=app.kubernetes.io/component=controller"
- "--timeout=300s"
values:
- "{{`{{ .Release.Name }}`}}-values.yaml.gotmpl"
- "env/{{ .Environment.Name }}/{{`{{ .Release.Name }}`}}-values.yaml.gotmpl"
Expand Down