forked from konstructio/gitops-template
-
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.
- Loading branch information
Showing
759 changed files
with
16,889 additions
and
3,186 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Validate if commits in PR are signed | ||
on: pull_request | ||
|
||
jobs: | ||
signed-commits-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/[email protected] | ||
|
||
- name: Check signed commits in PR | ||
uses: 1Password/check-signed-commits-action@v1 |
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,17 @@ | ||
default: help | ||
|
||
.PHONY: help | ||
help: ## print targets and their descrptions | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: fmt | ||
fmt: ## terraform fmt | ||
terraform fmt -recursive -write . | ||
|
||
.PHONY: validate | ||
validate: ## terraform validate | ||
@for dir in $(shell find . -name "*.tf" -not -path "*.terraform*" -printf '%h ' | uniq); do \ | ||
echo "====> $$dir"; \ | ||
terraform -chdir=$$dir init -backend=false || exit 1; \ | ||
terraform -chdir=$$dir validate || exit 1; \ | ||
done |
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 @@ | ||
version: 3 | ||
automerge: true | ||
projects: | ||
- dir: terraform/<CLOUD_PROVIDER> | ||
terraform_version: 1.3.8 | ||
autoplan: | ||
enabled: true | ||
when_modified: ['**/*.tf', '*.tf*'] | ||
- dir: terraform/<GIT_PROVIDER> | ||
terraform_version: 1.3.8 | ||
autoplan: | ||
enabled: true | ||
when_modified: ['**/*.tf', '*.tf*'] | ||
- dir: terraform/users | ||
terraform_version: 1.3.8 | ||
autoplan: | ||
enabled: true | ||
when_modified: ['**/*.tf', '**/modules/*.tf', '**/admins/*.tf', '**/developers/*.tf', '*.tf*'] | ||
- dir: terraform/vault | ||
terraform_version: 1.3.8 | ||
autoplan: | ||
enabled: true | ||
when_modified: ['**/*.tf', '*.tf*'] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
akamai-github/registry/environments/development/metaphor.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,24 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: development-environment-metaphor | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
annotations: | ||
argocd.argoproj.io/sync-wave: '45' | ||
spec: | ||
project: default | ||
source: | ||
repoURL: <GITOPS_REPO_URL> | ||
path: registry/environments/development/metaphor | ||
targetRevision: HEAD | ||
destination: | ||
name: <WORKLOAD_CLUSTER_NAME> | ||
namespace: development | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
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
36 changes: 36 additions & 0 deletions
36
akamai-github/registry/environments/development/metaphor/values.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,36 @@ | ||
metaphor: | ||
annotations: | | ||
linkerd.io/inject: "enabled" | ||
labels: | | ||
mirror.linkerd.io/exported: "true" | ||
image: | ||
repository: <CONTAINER_REGISTRY_URL>/metaphor | ||
imagePullSecrets: | ||
- name: docker-config | ||
ingress: | ||
className: nginx | ||
enabled: true | ||
annotations: | ||
<CERT_MANAGER_ISSUER_ANNOTATION_1> | ||
<CERT_MANAGER_ISSUER_ANNOTATION_2> | ||
<CERT_MANAGER_ISSUER_ANNOTATION_3> | ||
<CERT_MANAGER_ISSUER_ANNOTATION_4> | ||
nginx.ingress.kubernetes.io/service-upstream: "true" | ||
hosts: | ||
- host: metaphor-development.<DOMAIN_NAME> | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
tls: | ||
- secretName: metaphor-tls | ||
hosts: | ||
- metaphor-development.<DOMAIN_NAME> | ||
metaphor: | ||
host: https://metaphor-development.<DOMAIN_NAME>/api | ||
console: https://kubefirst.<DOMAIN_NAME> | ||
|
||
clusterSecretStoreName: <WORKLOAD_CLUSTER_NAME>-vault-kv-secret | ||
vaultSecretPath: <WORKLOAD_CLUSTER_NAME>/metaphor | ||
configs: | ||
configOne: <WORKLOAD_CLUSTER_NAME>-config-one | ||
configTwo: <WORKLOAD_CLUSTER_NAME>-config-two |
24 changes: 24 additions & 0 deletions
24
akamai-github/registry/environments/production/metaphor.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,24 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: production-environment-metaphor | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
annotations: | ||
argocd.argoproj.io/sync-wave: '45' | ||
spec: | ||
project: default | ||
source: | ||
repoURL: <GITOPS_REPO_URL> | ||
path: registry/environments/production/metaphor | ||
targetRevision: HEAD | ||
destination: | ||
name: <WORKLOAD_CLUSTER_NAME> | ||
namespace: production | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
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
36 changes: 36 additions & 0 deletions
36
akamai-github/registry/environments/production/metaphor/values.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,36 @@ | ||
metaphor: | ||
annotations: | | ||
linkerd.io/inject: "enabled" | ||
labels: | | ||
mirror.linkerd.io/exported: "true" | ||
image: | ||
repository: <CONTAINER_REGISTRY_URL>/metaphor | ||
imagePullSecrets: | ||
- name: docker-config | ||
ingress: | ||
className: nginx | ||
enabled: true | ||
annotations: | ||
<CERT_MANAGER_ISSUER_ANNOTATION_1> | ||
<CERT_MANAGER_ISSUER_ANNOTATION_2> | ||
<CERT_MANAGER_ISSUER_ANNOTATION_3> | ||
<CERT_MANAGER_ISSUER_ANNOTATION_4> | ||
nginx.ingress.kubernetes.io/service-upstream: "true" | ||
hosts: | ||
- host: metaphor-production.<DOMAIN_NAME> | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
tls: | ||
- secretName: metaphor-tls | ||
hosts: | ||
- metaphor-production.<DOMAIN_NAME> | ||
metaphor: | ||
host: https://metaphor-production.<DOMAIN_NAME>/api | ||
console: https://kubefirst.<DOMAIN_NAME> | ||
|
||
clusterSecretStoreName: <WORKLOAD_CLUSTER_NAME>-vault-kv-secret | ||
vaultSecretPath: <WORKLOAD_CLUSTER_NAME>/metaphor | ||
configs: | ||
configOne: <WORKLOAD_CLUSTER_NAME>-config-one | ||
configTwo: <WORKLOAD_CLUSTER_NAME>-config-two |
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 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: staging-environment-metaphor | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
annotations: | ||
argocd.argoproj.io/sync-wave: '45' | ||
spec: | ||
project: default | ||
source: | ||
repoURL: <GITOPS_REPO_URL> | ||
path: registry/environments/staging/metaphor | ||
targetRevision: HEAD | ||
destination: | ||
name: <WORKLOAD_CLUSTER_NAME> | ||
namespace: staging | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
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
36 changes: 36 additions & 0 deletions
36
akamai-github/registry/environments/staging/metaphor/values.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,36 @@ | ||
metaphor: | ||
annotations: | | ||
linkerd.io/inject: "enabled" | ||
labels: | | ||
mirror.linkerd.io/exported: "true" | ||
image: | ||
repository: <CONTAINER_REGISTRY_URL>/metaphor | ||
imagePullSecrets: | ||
- name: docker-config | ||
ingress: | ||
className: nginx | ||
enabled: true | ||
annotations: | ||
<CERT_MANAGER_ISSUER_ANNOTATION_1> | ||
<CERT_MANAGER_ISSUER_ANNOTATION_2> | ||
<CERT_MANAGER_ISSUER_ANNOTATION_3> | ||
<CERT_MANAGER_ISSUER_ANNOTATION_4> | ||
nginx.ingress.kubernetes.io/service-upstream: "true" | ||
hosts: | ||
- host: metaphor-staging.<DOMAIN_NAME> | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
tls: | ||
- secretName: metaphor-tls | ||
hosts: | ||
- metaphor-staging.<DOMAIN_NAME> | ||
metaphor: | ||
host: https://metaphor-staging.<DOMAIN_NAME>/api | ||
console: https://kubefirst.<DOMAIN_NAME> | ||
|
||
clusterSecretStoreName: <WORKLOAD_CLUSTER_NAME>-vault-kv-secret | ||
vaultSecretPath: <WORKLOAD_CLUSTER_NAME>/metaphor | ||
configs: | ||
configOne: <WORKLOAD_CLUSTER_NAME>-config-one | ||
configTwo: <WORKLOAD_CLUSTER_NAME>-config-two |
31 changes: 31 additions & 0 deletions
31
akamai-github/templates/mgmt/actions-runner-controller.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,31 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: actions-runner-controller-components | ||
namespace: argocd | ||
annotations: | ||
argocd.argoproj.io/sync-wave: '50' | ||
spec: | ||
project: default | ||
source: | ||
repoURL: <GITOPS_REPO_URL> | ||
path: registry/clusters/<CLUSTER_NAME>/components/actions-runner-controller | ||
targetRevision: HEAD | ||
destination: | ||
name: in-cluster | ||
namespace: github-runner | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true | ||
- ApplyOutOfSyncOnly=true | ||
- Replace=true | ||
- PruneLast=true | ||
retry: | ||
limit: 5 | ||
backoff: | ||
duration: 5s | ||
maxDuration: 5m0s | ||
factor: 2 |
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 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: argocd-projects | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
annotations: | ||
argocd.argoproj.io/sync-wave: '0' | ||
spec: | ||
project: default | ||
source: | ||
repoURL: <GITOPS_REPO_URL> | ||
path: registry/clusters/<CLUSTER_NAME>/components/argocd-appprojects | ||
targetRevision: HEAD | ||
destination: | ||
name: in-cluster | ||
namespace: argocd | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
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
Oops, something went wrong.