-
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
0 parents
commit 4256536
Showing
12 changed files
with
117 additions
and
0 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,2 @@ | ||
# All files are owned by the infrastructure team | ||
* @stacc/platform-infrastructure |
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 @@ | ||
titleOnly: 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,26 @@ | ||
# config docs: https://github.com/probot/stale#usage | ||
exemptLabels: | ||
- security | ||
- pinned | ||
- rickroll | ||
|
||
pulls: | ||
daysUntilStale: 7 | ||
markComment: > | ||
This pull request has been automatically marked as stale because it has not had | ||
recent activity. It will be closed in 7 days if no further activity occurs. Thank you | ||
for your contributions. | ||
daysUntilClose: 7 | ||
closeComment: > | ||
This pull request has been automatically closed. | ||
issues: | ||
daysUntilStale: 14 | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed in 7 days if no further activity occurs. Thank you | ||
for your contributions. | ||
daysUntilClose: 7 | ||
closeComment: > | ||
This issue has been automatically closed. |
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,9 @@ | ||
name: create-tag-release | ||
on: push | ||
jobs: | ||
helm-unittest: | ||
uses: stacc/platform-github-actions/.github/workflows/helm-unittest.yaml@main | ||
create-tag-release: | ||
if: github.ref == 'refs/heads/main' | ||
uses: stacc/platform-github-actions/.github/workflows/tag-release.yaml@main | ||
needs: helm-unittest |
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 @@ | ||
# Ignore chart lock file | ||
chart.lock | ||
|
||
# Ignore other undesired files | ||
*.tmp | ||
*.bak | ||
rendered | ||
charts/ | ||
rendered.yaml | ||
tmp | ||
Chart.lock |
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: v2 | ||
name: chartName | ||
version: 0.0.1 | ||
description: Helm Chart for chartName | ||
dependencies: | ||
- name: chartName | ||
version: 0.0.1 | ||
repository: https://charts.chartName.io |
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 @@ | ||
# helm-chart | ||
git repository template for helm charts |
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 @@ | ||
# https://taskfile.dev | ||
|
||
version: '3' | ||
|
||
env: | ||
CHART_DIR: "." | ||
|
||
tasks: | ||
build: | ||
cmds: | ||
- helm dependency build $CHART_DIR | ||
test: | ||
cmds: | ||
- helm unittest $CHART_DIR | ||
template: | ||
cmds: | ||
- helm template ${CHART_DIR} > rendered.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 @@ | ||
{{- if .Values.chartName.createDeployment -}} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nginx-deployment | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:latest | ||
ports: | ||
- containerPort: 80 | ||
{{- end }} |
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 @@ | ||
suite: test deployment | ||
templates: | ||
- templates/deployment.yaml | ||
tests: | ||
- it: check deployment creation | ||
set: | ||
chartName.createDeployment: true | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- it: check deployment disabled | ||
values: | ||
- values/values.yaml | ||
asserts: | ||
- hasDocuments: | ||
count: 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,2 @@ | ||
chartName: | ||
createDeployment: false |
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 @@ | ||
chartName: | ||
createDeployment: true |