mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 01:49:44 +00:00
chore: rename files, merge files
This commit is contained in:
parent
b710c3999b
commit
e663f54ffe
6 changed files with 43 additions and 41 deletions
|
|
@ -25,7 +25,7 @@ function main() {
|
||||||
|
|
||||||
# apply manifests for crucial applications
|
# apply manifests for crucial applications
|
||||||
for app_file in \
|
for app_file in \
|
||||||
${state_path}/system/argo-cd-application.yaml \
|
${state_path}/system/argo-cd.yaml \
|
||||||
; do
|
; do
|
||||||
namespace=$(yq -e '.spec.destination.namespace' ${app_file})
|
namespace=$(yq -e '.spec.destination.namespace' ${app_file})
|
||||||
${kubectl_cmd} create ns ${namespace} || true
|
${kubectl_cmd} create ns ${namespace} || true
|
||||||
|
|
@ -33,10 +33,8 @@ function main() {
|
||||||
done
|
done
|
||||||
|
|
||||||
${kubectl_cmd} apply -n argocd -R \
|
${kubectl_cmd} apply -n argocd -R \
|
||||||
-f ${state_path}/apps-application.yaml \
|
-f ${state_path}/apps.yaml \
|
||||||
-f ${state_path}/apps-project.yaml \
|
-f ${state_path}/system.yaml
|
||||||
-f ${state_path}/system-application.yaml \
|
|
||||||
-f ${state_path}/system-project.yaml
|
|
||||||
|
|
||||||
# wait for argocd to create argocd-initial-admin-secret
|
# wait for argocd to create argocd-initial-admin-secret
|
||||||
${kubectl_cmd} -n argocd wait --timeout=300s \
|
${kubectl_cmd} -n argocd wait --timeout=300s \
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: AppProject
|
|
||||||
metadata:
|
|
||||||
name: apps
|
|
||||||
namespace: argocd
|
|
||||||
# Finalizer that ensures that project is not deleted until it is not referenced by any application
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
description: Project for user applications
|
|
||||||
sourceRepos:
|
|
||||||
- '*'
|
|
||||||
destinations:
|
|
||||||
- namespace: '*'
|
|
||||||
server: '*'
|
|
||||||
clusterResourceWhitelist:
|
|
||||||
- group: '*'
|
|
||||||
kind: '*'
|
|
||||||
|
|
@ -1,3 +1,23 @@
|
||||||
|
---
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: AppProject
|
||||||
|
metadata:
|
||||||
|
name: apps
|
||||||
|
namespace: argocd
|
||||||
|
# Finalizer that ensures that project is not deleted until it is not referenced by any application
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
description: Project for user applications
|
||||||
|
sourceRepos:
|
||||||
|
- '*'
|
||||||
|
destinations:
|
||||||
|
- namespace: '*'
|
||||||
|
server: '*'
|
||||||
|
clusterResourceWhitelist:
|
||||||
|
- group: '*'
|
||||||
|
kind: '*'
|
||||||
|
---
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: AppProject
|
|
||||||
metadata:
|
|
||||||
name: system
|
|
||||||
namespace: argocd
|
|
||||||
# Finalizer that ensures that project is not deleted until it is not referenced by any application
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
description: Project for "system" applications
|
|
||||||
sourceRepos:
|
|
||||||
- '*'
|
|
||||||
destinations:
|
|
||||||
- namespace: '*'
|
|
||||||
server: '*'
|
|
||||||
clusterResourceWhitelist:
|
|
||||||
- group: '*'
|
|
||||||
kind: '*'
|
|
||||||
|
|
@ -1,3 +1,23 @@
|
||||||
|
---
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: AppProject
|
||||||
|
metadata:
|
||||||
|
name: system
|
||||||
|
namespace: argocd
|
||||||
|
# Finalizer that ensures that project is not deleted until it is not referenced by any application
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
description: Project for "system" applications
|
||||||
|
sourceRepos:
|
||||||
|
- '*'
|
||||||
|
destinations:
|
||||||
|
- namespace: '*'
|
||||||
|
server: '*'
|
||||||
|
clusterResourceWhitelist:
|
||||||
|
- group: '*'
|
||||||
|
kind: '*'
|
||||||
|
---
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
Loading…
Reference in a new issue