-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide boilerplate for Resource Discovery Helm chart (#1294)
- Loading branch information
1 parent
8e351dc
commit 69db7b9
Showing
21 changed files
with
758 additions
and
54 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
48 changes: 48 additions & 0 deletions
48
build/azure-devops/templates/stages/helm-chart-verification.yml
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,48 @@ | ||
parameters: | ||
chartName: '' | ||
chartVersion: '' | ||
appVersion: '' | ||
imageName: '' | ||
dependsOn: '' | ||
|
||
stages: | ||
- stage: Helm3 | ||
displayName: Helm Chart (3.x) | ||
dependsOn: ${{ parameters.dependsOn }} | ||
variables: | ||
Helm.Version: '3.0.0' | ||
jobs: | ||
- job: Helm3_x | ||
displayName: Helm 3.x - Lint, Package & Push Chart | ||
condition: succeeded() | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
steps: | ||
- download: current | ||
artifact: variables | ||
# TODO: Move this to step to pass as "pre-run step" | ||
- template: ./../../utils/read-variable-on-linux.yml | ||
parameters: | ||
variableName: 'Image.Tag' | ||
- template: ./../../helm/lint-chart.yml | ||
parameters: | ||
helmVersion: '$(Helm.Version)' | ||
chartName: '${{ parameters.chartName }}' | ||
- template: ./../../helm/package-preview-chart.yml | ||
parameters: | ||
chartName: '${{ parameters.chartName }}' | ||
chartVersion: '${{ parameters.chartVersion }}' | ||
appVersion: '${{ parameters.appVersion }}' | ||
imageName: '${{ parameters.imageName }}' | ||
transformedChartName: '${{ parameters.chartName }}-ci' | ||
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: | ||
- template: ./../../helm/push-chart.yml | ||
parameters: | ||
chartName: '${{ parameters.chartName }}' | ||
chartVersion: '${{ parameters.chartVersion }}' | ||
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Helm Chart' | ||
inputs: | ||
PathtoPublish: charts/output/${{ parameters.chartName }}-${{ parameters.chartVersion }}.tgz | ||
ArtifactName: helm |
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,21 @@ | ||
# 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 | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
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 @@ | ||
apiVersion: v2 | ||
version: 0.2.0 | ||
appVersion: 1.0.0 | ||
type: application | ||
name: promitor-agent-resource-discovery | ||
description: Promitor, bringing Azure Monitor metrics where you need them. | ||
home: https://promitor.io | ||
sources: | ||
- https://github.com/tomkerkhove/promitor | ||
maintainers: | ||
- name: Tom Kerkhove | ||
url: https://github.com/tomkerkhove | ||
icon: https://raw.githubusercontent.com/tomkerkhove/promitor/master/docs/media/logos/promitor.png |
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 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 Tom Kerkhove | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.