forked from camptocamp/devops-stack
-
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.
Don't use kubernetes-alpha provider (fixes camptocamp#192)
- Loading branch information
Showing
29 changed files
with
700 additions
and
131 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
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,4 @@ | ||
--- | ||
apiVersion: "v2" | ||
name: "app-of-apps" | ||
version: "0" |
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,23 @@ | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "5" | ||
name: apps | ||
namespace: argocd | ||
spec: | ||
project: default | ||
source: | ||
path: argocd/apps | ||
repoURL: {{ .Values.spec.source.repoURL }} | ||
targetRevision: {{ .Values.spec.source.targetRevision }} | ||
helm: | ||
values: | | ||
{{ toYaml .Values | nindent 8 }} | ||
destination: | ||
namespace: default | ||
server: {{ .Values.spec.destination.server }} | ||
syncPolicy: | ||
automated: | ||
selfHeal: 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,7 @@ | ||
--- | ||
spec: | ||
destination: | ||
server: https://kubernetes.default.svc | ||
source: | ||
repoURL: ... | ||
targetRevision: HEAD |
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
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,26 @@ | ||
CLUSTER_NAME := default | ||
|
||
REMOTE := $(shell git status -sb|sed -Ene's@.. ([^\.]*)\.\.\.([^/]*)/(.*)@\2@p') | ||
TARGET_REVISION := $(shell git status -sb|sed -Ene's@.. ([^\.]*)\.\.\.([^/]*)/(.*)@\3@p'|cut -f1 -d' ') | ||
REMOTE_URL := $(shell git remote get-url $(REMOTE)) | ||
ifeq ($(findstring "https",$(REMOTE_URL)),) | ||
REPO_URL = "https://github.com/$(shell echo $(REMOTE_URL) | sed -Ene's|[email protected]:([^/]*)/(.*).git|\1/\2|p').git" | ||
else | ||
REPO_URL = $(REMOTE_URL) | ||
endif | ||
|
||
.PHONY: provision clean | ||
|
||
provision: terraform/*.tf | ||
CLUSTER_NAME=$(CLUSTER_NAME) TF_VAR_repo_url=$(REPO_URL) TF_VAR_target_revision=$(TARGET_REVISION) ../../scripts/provision.sh | ||
|
||
dry-run: terraform/*.tf | ||
CLUSTER_NAME=$(CLUSTER_NAME) TF_VAR_repo_url=$(REPO_URL) TF_VAR_target_revision=$(TARGET_REVISION) ../../scripts/plan.sh | ||
|
||
clean: | ||
CLUSTER_NAME=$(CLUSTER_NAME) TF_VAR_repo_url=$(REPO_URL) TF_VAR_target_revision=$(TARGET_REVISION) ../../scripts/destroy.sh | ||
|
||
debug: | ||
@echo CLUSTER_NAME=$(CLUSTER_NAME) | ||
@echo REPO_URL=$(REPO_URL) | ||
@echo TARGET_REVISION=$(TARGET_REVISION) |
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,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
Oops, something went wrong.