-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial back-port from baloise generic-chart (preparing 4.0.0 release)
- Loading branch information
Nikolas Philips
committed
Aug 12, 2023
1 parent
5abcfff
commit 46f6c61
Showing
74 changed files
with
2,825 additions
and
390 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.tgz | ||
*.lock | ||
*.iml | ||
.idea/ | ||
.idea/ | ||
.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ | |
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
tests/ |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
apiVersion: v2 | ||
name: generic-chart | ||
version: 2.3.0 | ||
version: 4.0.0-alpha |
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,65 @@ | ||
@Library('jenkins-shared-library@release') _ | ||
|
||
pipeline { | ||
|
||
agent { | ||
kubernetes(agents().helm().startContainers()) | ||
} | ||
|
||
options { | ||
skipStagesAfterUnstable() | ||
disableConcurrentBuilds() | ||
buildDiscarder(logRotator(numToKeepStr: '28')) | ||
timeout(time: 1, unit: 'HOURS') | ||
timestamps() | ||
} | ||
|
||
stages { | ||
stage("Helm Lint") { | ||
steps { | ||
helmLint() | ||
} | ||
} | ||
|
||
stage("Helm Test") { | ||
steps { | ||
container("helm") { | ||
sh 'helm unittest -o test-results.xml -t junit -3 $(find tests/**/test.yaml | sed \'s:tests/:-f tests/:g\') .' | ||
} | ||
} | ||
post { | ||
always { | ||
junit 'test-results.xml' | ||
} | ||
} | ||
} | ||
|
||
stage("Helm Push") { | ||
when { | ||
not { | ||
branch 'master' | ||
} | ||
} | ||
steps { | ||
script { | ||
def version = "3.0.0-${GIT_COMMIT}" | ||
currentBuild.displayName = version | ||
helmPush tenant: 'shared', version: version | ||
} | ||
} | ||
} | ||
|
||
stage("Helm Release") { | ||
when { | ||
branch 'master' | ||
} | ||
steps { | ||
script { | ||
def chart = readYaml file: 'Chart.yaml' | ||
currentBuild.displayName = chart.version | ||
helmPush tenant: 'shared' | ||
} | ||
} | ||
} | ||
} | ||
} |
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,13 @@ | ||
current_dir := $(shell pwd) | ||
helm3_image := docker.io/baloisegroup/helm:v3.12.3 | ||
helm_command := docker run --rm -w /apps/ -v $(current_dir):/apps $(helm3_image) | ||
tests_args := $(shell find tests/**/test.yaml | sed 's:tests/:-f tests/:g') | ||
|
||
test: | ||
$(helm_command) unittest $(tests_args) . | ||
|
||
test-update: | ||
$(helm_command) unittest -u $(tests_args) . | ||
|
||
template: | ||
$(helm_command) template -f values.yaml -f .values-example.yaml example-app . |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,8 @@ | ||
apiVersion: v2 | ||
name: app-test | ||
version: 1.0.0 | ||
dependencies: | ||
- name: generic-chart | ||
version: 3.14.0 | ||
repository: https://baloise-charts.github.io/ | ||
alias: app |
Oops, something went wrong.