-
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
1 parent
9ee622a
commit f930d92
Showing
220 changed files
with
4,223 additions
and
8,525 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
build: main.go | ||
go build . | ||
|
||
clean: | ||
rm momentum-core | ||
|
||
run: build | ||
./momentum-core | ||
|
||
clean-caches: | ||
go clean -cache -testcache |
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
momentum-backend/_templates/applications/_base/kustomization.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,21 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ns.yaml | ||
- release.yaml | ||
configMapGenerator: | ||
- files: | ||
- values.yaml | ||
name: base-values | ||
options: | ||
disableNameSuffixHash: true | ||
secretGenerator: | ||
- files: | ||
- secrets.yaml | ||
name: base-secrets | ||
options: | ||
disableNameSuffixHash: true | ||
labels: | ||
- includeSelectors: true | ||
pairs: | ||
gitops.natron.io/application: {{ .ApplicationName }} |
File renamed without changes.
28 changes: 28 additions & 0 deletions
28
momentum-backend/_templates/applications/_base/release.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,28 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
metadata: | ||
name: {{ .ApplicationName }} | ||
spec: | ||
interval: 10m | ||
chart: | ||
spec: | ||
chart: '{{ .ApplicationChartName }}' | ||
sourceRef: | ||
kind: HelmRepository | ||
name: '{{ .ApplicationName }}-charts' | ||
namespace: '{{ .ApplicationName }}' | ||
install: | ||
remediation: | ||
remediateLastFailure: true | ||
upgrade: | ||
remediation: | ||
remediateLastFailure: true | ||
valuesFrom: | ||
- kind: ConfigMap | ||
name: base-values | ||
- kind: Secret | ||
name: base-secrets | ||
- kind: ConfigMap | ||
name: deploy-values | ||
- kind: Secret | ||
name: deploy-secrets |
File renamed without changes.
Empty file.
Empty file.
Empty file.
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,8 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
# config | ||
- ./ns.yaml | ||
- ./repository.yaml | ||
# deployments | ||
# stages |
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: v1 | ||
kind: Namespace | ||
metadata: | ||
name: '{{ .ApplicationName }}' |
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,8 @@ | ||
apiVersion: source.toolkit.fluxcd.io/v1beta2 | ||
kind: HelmRepository | ||
metadata: | ||
name: '{{ .ApplicationName }}-charts' | ||
namespace: '{{ .ApplicationName }}' | ||
spec: | ||
interval: 10m0s | ||
url: https://charts.bitnami.com/bitnami |
11 changes: 11 additions & 0 deletions
11
momentum-backend/_templates/deployments/deploymentName.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,11 @@ | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: '{{ .DeploymentNameWithoutEnding }}' | ||
spec: | ||
interval: 5m0s | ||
path: ./_deploy/{{ .DeploymentName }}/ | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: '{{ .RepositoryName }}' |
23 changes: 23 additions & 0 deletions
23
momentum-backend/_templates/deployments/deploymentName/kustomization.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,23 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: {{ .DeploymentNameWithoutEnding }} | ||
resources: | ||
- ../../_base/ | ||
configMapGenerator: | ||
- files: | ||
- values.yaml | ||
name: deploy-values | ||
options: | ||
disableNameSuffixHash: true | ||
secretGenerator: | ||
- files: | ||
- secrets.yaml | ||
name: deploy-secrets | ||
options: | ||
disableNameSuffixHash: true | ||
labels: | ||
- includeSelectors: true | ||
pairs: | ||
gitops.natron.io/stage: base | ||
patches: | ||
- path: release.yaml |
4 changes: 4 additions & 0 deletions
4
momentum-backend/_templates/deployments/deploymentName/release.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,4 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
metadata: | ||
name: {{ .ApplicationName }} |
Empty file.
Empty file.
28 changes: 28 additions & 0 deletions
28
momentum-backend/_templates/stages/_base/kustomization.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,28 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../_base/release.yaml | ||
configMapGenerator: | ||
- files: | ||
- ../../_base/values.yaml | ||
name: base-values | ||
options: | ||
disableNameSuffixHash: true | ||
- files: | ||
- values.yaml | ||
name: '{{ .StageName }}-values' | ||
options: | ||
disableNameSuffixHash: true | ||
secretGenerator: | ||
- files: | ||
- ../../_base/secrets.yaml | ||
name: base-secrets | ||
options: | ||
disableNameSuffixHash: true | ||
- files: | ||
- secrets.yaml | ||
name: '{{ .StageName }}-secrets' | ||
options: | ||
disableNameSuffixHash: true | ||
patches: | ||
- path: release.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: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
metadata: | ||
name: '{{ .ApplicationName }}' | ||
spec: | ||
valuesFrom: | ||
- kind: ConfigMap | ||
name: base-values | ||
- kind: Secret | ||
name: base-secrets | ||
- kind: ConfigMap | ||
name: '{{ .StageName }}-values' | ||
- kind: Secret | ||
name: '{{ .StageName }}-secrets' | ||
- kind: ConfigMap | ||
name: deploy-values | ||
- kind: Secret | ||
name: deploy-secrets |
Empty file.
Empty file.
Empty file.
Empty file.
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,2 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization |
Oops, something went wrong.