-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #316 from appuio/chart-releaser
Rework chart repository structure
- Loading branch information
Showing
323 changed files
with
1,519 additions
and
7,717 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,38 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "[chart-name] SUMMARY" | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Describe the bug | ||
|
||
A clear and concise description of what the bug is. | ||
|
||
## Additional context | ||
|
||
Add any other context about the problem here. | ||
|
||
## To Reproduce | ||
|
||
Steps to reproduce the behavior: | ||
1. ... | ||
|
||
## Logs | ||
|
||
If applicable, add logs to help explain your problem. | ||
```console | ||
|
||
``` | ||
|
||
## Expected behavior | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
**Environment (please complete the following information):** | ||
- Chart: latest | ||
- Helm: v3 | ||
- Kubernetes API: v1.21 | ||
- Distribution (Openshift, Rancher, etc.): Plain K8s |
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,34 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "[chart-name] SUMMARY" | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Summary | ||
|
||
**As** role name\ | ||
**I want** a feature or functionality\ | ||
**So that** I get certain business value | ||
|
||
## Context | ||
|
||
Add more information here. You are completely free regarding form and length. | ||
|
||
## Out of Scope | ||
|
||
* List aspects that are explicitly not part of this feature | ||
|
||
## Further links | ||
|
||
* URLs of relevant Git repositories, PRs, Issues, etc. | ||
|
||
## Acceptance criteria | ||
|
||
* Given a precondition, when an action happens, then expect a result | ||
|
||
<!-- | ||
If you already have ideas what the requirements are, please list them in given-when-then expressions. | ||
--> |
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,10 @@ | ||
|
||
{{ template "chart.sourcesSection" . }} | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
<!--- | ||
Common/Useful Link references from values.yaml | ||
--> | ||
[resource-units]: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-units-in-kubernetes | ||
[prometheus-operator]: https://github.com/coreos/prometheus-operator |
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,15 @@ | ||
{{ template "chart.header" . }} | ||
{{ template "chart.deprecationWarning" . }} | ||
|
||
{{ template "chart.badgesSection" . }} | ||
|
||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.homepageLine" . }} | ||
|
||
## Installation | ||
|
||
```bash | ||
helm repo add appuio https://charts.appuio.ch | ||
helm install {{ template "chart.name" . }} appuio/{{ template "chart.name" . }} | ||
``` |
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,25 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Determine Go version from go.mod | ||
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Run all linters | ||
run: make lint |
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,27 @@ | ||
name: Release Charts | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
gh-pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '0' | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
with: | ||
charts_dir: appuio | ||
charts_repo_url: https://charts.appuio.ch | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
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,37 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
unit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: azure/setup-helm@v1 | ||
- name: Determine Go version from go.mod | ||
run: echo "GO_VERSION=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_ENV | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Run Chart unit tests | ||
run: make prepare test | ||
|
||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Generate Chart documentation | ||
run: make docs | ||
- name: Check if documentation is on par with Chart changes | ||
run: git diff --exit-code |
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,2 +1,2 @@ | ||
*/charts/*.tgz | ||
**/charts/*.tgz | ||
/**/.idea |
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,48 @@ | ||
SHELL := /usr/bin/env bash | ||
|
||
MASTER_BRANCH=master | ||
SOURCE_README=README.gotmpl | ||
TARGET_README=README.md | ||
CHARTS_DIR=charts/ | ||
|
||
HELM_DOCS_VERSION=v1.5.0 | ||
|
||
.PHONY: help | ||
help: ## Show this help | ||
@grep -E -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = "(: ).*?## "}; {gsub(/\\:/,":",$$1)}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: docs | ||
docs: docs\:helm | ||
|
||
.PHONY: docs\:helm | ||
docs\:helm: ## Creates the Chart READMEs from template and values.yaml files | ||
@echo --- Generating Chart READMEs | ||
@docker run --rm -v $$(pwd):/helm-docs -u $$(id -u) jnorwood/helm-docs:$(HELM_DOCS_VERSION) \ | ||
--template-files ./.github/helm-docs-header.gotmpl.md \ | ||
--template-files README.gotmpl.md \ | ||
--template-files ./.github/helm-docs-footer.gotmpl.md | ||
|
||
.PHONY: test | ||
test: ## Run Chart unit tests | ||
@echo --- Executing unit tests | ||
@go test ./... | ||
|
||
.PHONY: lint\:fmt | ||
lint\:fmt: ## Run go fmt against code | ||
go fmt ./... | ||
|
||
.PHONY: lint\:vet | ||
lint\:vet: ## Run go vet against code | ||
go vet ./... | ||
|
||
.PHONY: lint | ||
lint: lint\:fmt lint\:vet ## All-in-one linting and checks for uncommitted changes | ||
@echo 'Check for uncommitted changes ...' | ||
git diff --exit-code | ||
|
||
.PHONY: prepare | ||
prepare: ## Prepare the charts for testing | ||
@echo --- Preparing charts | ||
@find appuio -type f -name Makefile | sed 's|/[^/]*$$||' | xargs -I '%' make -C '%' prepare | ||
@echo 'Check for uncommitted changes ...' | ||
git diff --exit-code |
File renamed without changes.
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,7 @@ | ||
<!--- | ||
The README.md file is automatically generated with helm-docs! | ||
Edit the README.gotmpl.md template instead. | ||
--> | ||
|
||
{{ template "chart.valuesSection" . }} |
Oops, something went wrong.