Skip to content

Commit 2e714f6

Browse files
authored
Add traefik and traefik-crd charts to RKE2 release notes (#718)
* Add traefik and traefik-crd charts to RKE2 release notes * Add Traefik image to RKE2 release notes
1 parent 8b2e712 commit 2e714f6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

release/release.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ type rke2ReleaseNoteData struct {
9494
SnapshotControllerChartVersion string
9595
SnapshotControllerCRDChartVersion string
9696
SnapshotValidationWebhookChartVersion string
97+
TraefikImageVersion string
98+
TraefikVersion string
99+
TraefikCRDVersion string
97100
releaseNoteData
98101
}
99102

@@ -122,6 +125,9 @@ func (rd *rke2ReleaseNoteData) Fill(milestone string) error {
122125
rd.CalicoVersion = imageTagVersion("calico-node", rke2Repo, milestone)
123126
rd.CalicoURL = createCalicoURL(rd.CalicoVersion)
124127

128+
traefikImageVersion := imageTagVersion("hardened-traefik", rke2Repo, milestone)
129+
rd.TraefikImageVersion = strings.Split(traefikImageVersion, "-")[0] // removing the metadata to link to upstream traefik/traefik
130+
125131
// get charts versions
126132
chartsData, err := rke2ChartsVersion(milestone)
127133
if err != nil {
@@ -142,6 +148,8 @@ func (rd *rke2ReleaseNoteData) Fill(milestone string) error {
142148
rd.SnapshotControllerChartVersion = chartsData["rke2-snapshot-controller.yaml"].Version
143149
rd.SnapshotControllerCRDChartVersion = chartsData["rke2-snapshot-controller-crd.yaml"].Version
144150
rd.SnapshotValidationWebhookChartVersion = chartsData["rke2-snapshot-validation-webhook.yaml"].Version
151+
rd.TraefikVersion = chartsData["rke2-traefik.yaml"].Version
152+
rd.TraefikCRDVersion = chartsData["rke2-traefik-crd.yaml"].Version
145153

146154
return nil
147155
}
@@ -991,6 +999,8 @@ cat /var/lib/rancher/rke2/server/token
991999
| rke2-snapshot-controller | [{{.SnapshotControllerChartVersion}}](https://github.com/rancher/rke2-charts/raw/main/assets/rke2-snapshot-controller/rke2-snapshot-controller-{{.SnapshotControllerChartVersion}}.tgz) |
9921000
| rke2-snapshot-controller-crd | [{{.SnapshotControllerCRDChartVersion}}](https://github.com/rancher/rke2-charts/raw/main/assets/rke2-snapshot-controller/rke2-snapshot-controller-crd-{{.SnapshotControllerCRDChartVersion}}.tgz) |
9931001
| rke2-snapshot-validation-webhook | [{{.SnapshotValidationWebhookChartVersion}}](https://github.com/rancher/rke2-charts/raw/main/assets/rke2-snapshot-validation-webhook/rke2-snapshot-validation-webhook-{{.SnapshotValidationWebhookChartVersion}}.tgz) |
1002+
| rke2-traefik | [{{.TraefikVersion}}](https://github.com/rancher/rke2-charts/raw/main/assets/rke2-traefik/rke2-traefik-{{.TraefikVersion}}.tgz) |
1003+
| rke2-traefik-crd | [{{.TraefikCRDVersion}}](https://github.com/rancher/rke2-charts/raw/main/assets/rke2-traefik/rke2-traefik-crd-{{.TraefikCRDVersion}}.tgz) |
9941004
9951005
9961006
## Packaged Component Versions
@@ -1004,6 +1014,7 @@ cat /var/lib/rancher/rke2/server/token
10041014
| CoreDNS | [{{.CoreDNSVersion}}](https://github.com/coredns/coredns/releases/tag/{{.CoreDNSVersion}}) |
10051015
| Ingress-Nginx | [{{.IngressNginxVersion}}](https://github.com/rancher/ingress-nginx/releases/tag/{{.IngressNginxVersion}}) |
10061016
| Helm-controller | [{{.HelmControllerVersion}}](https://github.com/k3s-io/helm-controller/releases/tag/{{.HelmControllerVersion}}) |
1017+
{{if .TraefikImageVersion}}| Traefik | [{{.TraefikImageVersion}}](https://github.com/traefik/traefik/releases/tag/{{.TraefikImageVersion}}) |{{end}}
10071018
10081019
### Available CNIs
10091020
| Component | Version | FIPS Compliant |

0 commit comments

Comments
 (0)