Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions charts/tuppr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ apiVersion: v2
name: tuppr
description: A Helm chart for tuppr - Talos Linux Upgrade Controller
type: application
# Floor matching the chart's surface: restricted Pod Security (seccompProfile),
# the admission webhook (admissionregistration.k8s.io/v1), and CRDs.
kubeVersion: ">=1.25.0-0"
version: 0.0.0
appVersion: "0.0.0"
version: 0.4.0 # x-release-please-version
appVersion: "0.4.0" # x-release-please-version
home: https://github.com/home-operations/tuppr
sources:
- https://github.com/home-operations/tuppr
Expand Down
4 changes: 3 additions & 1 deletion charts/tuppr/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# tuppr

![Version: 0.0.0](https://img.shields.io/badge/Version-0.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.0](https://img.shields.io/badge/AppVersion-0.0.0-informational?style=flat-square)
![Version](https://img.shields.io/static/v1?label=Version&message=0.4.0&color=informational&style=flat-square) <!-- x-release-please-version -->
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![AppVersion](https://img.shields.io/static/v1?label=AppVersion&message=0.4.0&color=informational&style=flat-square) <!-- x-release-please-version -->

A Helm chart for tuppr - Talos Linux Upgrade Controller

Expand Down
10 changes: 9 additions & 1 deletion charts/tuppr/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{{ template "chart.header" . }}

{{ template "chart.badgesSection" . }}
{{- /* Hand-rolled badges instead of chart.badgesSection so release-please can
stamp the version: its updater replaces only the first semver on an annotated
line and would swallow a `-color` suffix as a prerelease, so each version badge
uses the static/v1 query form (version followed by `&`), keeps the version out
of its alt text, and carries its own annotation. Keeps the committed README in
sync with the stamped Chart.yaml. */}}
![Version](https://img.shields.io/static/v1?label=Version&message={{ .Version }}&color=informational&style=flat-square) <!-- x-release-please-version -->
![Type: {{ .Type }}](https://img.shields.io/badge/Type-{{ .Type }}-informational?style=flat-square)
![AppVersion](https://img.shields.io/static/v1?label=AppVersion&message={{ .AppVersion }}&color=informational&style=flat-square) <!-- x-release-please-version -->

{{ template "chart.description" . }}

Expand Down
8 changes: 5 additions & 3 deletions charts/tuppr/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ tests:
- isKind:
of: Deployment

- it: should use the correct image
# The tag floats with the release-please-stamped appVersion; assert the
# repo:semver shape rather than a hardcoded version.
- it: should default the image tag to the chart appVersion
asserts:
- equal:
- matchRegex:
path: spec.template.spec.containers[0].image
value: ghcr.io/home-operations/tuppr:0.0.0
pattern: ^ghcr\.io/home-operations/tuppr:\d+\.\d+\.\d+$

- it: should use custom image tag
set:
Expand Down
3 changes: 2 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"include-component-in-tag": false,
"include-v-in-tag": false,
"include-v-in-release-name": false,
"always-update": true
"always-update": true,
"extra-files": ["charts/tuppr/Chart.yaml", "charts/tuppr/README.md"]
}
},
"changelog-sections": [
Expand Down
Loading