-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from debenstack/dev
Operator backups setup. Added basic projects and apps to Argo
- Loading branch information
Showing
25 changed files
with
1,503 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
resource "kubectl_manifest" "adventurewiki_app" { | ||
yaml_body = file("${abspath(path.module)}/res/apps/adventurewiki-app.yaml") | ||
|
||
depends_on = [ | ||
kubectl_manifest.projectterris_project | ||
] | ||
} | ||
|
||
resource "kubectl_manifest" "profile_app" { | ||
yaml_body = file("${abspath(path.module)}/res/apps/profile-app.yaml") | ||
|
||
depends_on = [ | ||
kubectl_manifest.debenstack_project | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
|
||
resource "time_sleep" "wait_after_argo" { | ||
create_duration = "30s" | ||
depends_on = [helm_release.argocd] | ||
} | ||
|
||
resource "kubectl_manifest" "debenstack_project" { | ||
yaml_body = file("${abspath(path.module)}/res/projects/debenstack-app-project.yaml") | ||
|
||
depends_on = [ | ||
time_sleep.wait_after_argo | ||
] | ||
} | ||
|
||
resource "kubectl_manifest" "projectterris_project" { | ||
yaml_body = file("${abspath(path.module)}/res/projects/projectterris-app-project.yaml") | ||
|
||
depends_on = [ | ||
time_sleep.wait_after_argo | ||
] | ||
} | ||
|
||
|
17 changes: 17 additions & 0 deletions
17
modules/k8config/modules/argocd/res/apps/adventurewiki-app.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: adventurewiki | ||
namespace: argocd | ||
spec: | ||
destination: | ||
name: in-cluster | ||
namespace: adventurewiki | ||
project: projectterris | ||
source: | ||
path: helm | ||
repoURL: https://github.com/debenstack/debenstack-adventurewiki.git | ||
targetRevision: main | ||
syncPolicy: | ||
syncOptions: | ||
- CreateNamespace=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: profile | ||
namespace: argocd | ||
spec: | ||
destination: | ||
name: in-cluster | ||
namespace: profile | ||
project: debenstack | ||
source: | ||
path: helm | ||
repoURL: https://github.com/debenstack/debenstack-profile.git | ||
targetRevision: master | ||
syncPolicy: | ||
syncOptions: | ||
- CreateNamespace=true |
18 changes: 18 additions & 0 deletions
18
modules/k8config/modules/argocd/res/projects/debenstack-app-project.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: debenstack | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
description: Projects Relevent to Ben and Personal Items | ||
destinations: | ||
- name: in-cluster | ||
namespace: '*' | ||
server: https://kubernetes.default.svc | ||
sourceRepos: | ||
- https://github.com/debenstack/debenstack-profile.git | ||
- https://github.com/debenstack/debenstack-techblog.git | ||
- https://github.com/debenstack/debenstack-personalblog.git | ||
- https://github.com/debenstack/debenstack-wiki.git |
16 changes: 16 additions & 0 deletions
16
modules/k8config/modules/argocd/res/projects/projectterris-app-project.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: projectterris | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
description: Projects with Business Potential | ||
destinations: | ||
- name: in-cluster | ||
namespace: '*' | ||
server: https://kubernetes.default.svc | ||
sourceRepos: | ||
- https://github.com/debenstack/debenstack-adventurewiki.git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.