Skip to content

Commit 0f7148b

Browse files
authored
Merge pull request #392 from owncloud/drop-kubernetes-version-enforcement-and-support-1.28
drop Kubernetes version enforcment and test Kubernetes 1.18
2 parents 78e623f + ff03c11 commit 0f7148b

File tree

5 files changed

+20
-42
lines changed

5 files changed

+20
-42
lines changed

.drone.star

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ config = {
22
"branches": [
33
"master",
44
],
5-
# if this changes, also the kubeVersion in the Chart.yaml needs to be changed
5+
# if this changes, also tested versions in need to be changed here:
6+
# - Makefile
67
"kubernetesVersions": [
78
"1.25.0",
89
"1.26.0",
910
"1.27.0",
11+
"1.28.0",
1012
],
1113
}
1214

@@ -118,15 +120,6 @@ def documentation(ctx):
118120
"--output-file=docs/values-desc-table.adoc",
119121
],
120122
},
121-
{
122-
"name": "helm-docs-kube-versions-adoc",
123-
"image": "jnorwood/helm-docs:v1.11.0",
124-
"entrypoint": [
125-
"/usr/bin/helm-docs",
126-
"--template-files=charts/ocis/docs/templates/kube-versions.adoc.gotmpl",
127-
"--output-file=kube-versions.adoc",
128-
],
129-
},
130123
{
131124
"name": "gomplate-values-adoc",
132125
"image": "hairyhenderson/gomplate:v3.11.5-alpine",

Makefile

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,22 @@ all: docs lint api clean
88
docs: $(HELM_DOCS) $(GOMPLATE)
99
$(HELM_DOCS) --template-files=README.md.gotmpl --output-file=README.md
1010
$(HELM_DOCS) --log-level debug --template-files=charts/ocis/docs/templates/values-desc-table.adoc.gotmpl --output-file=docs/values-desc-table.adoc
11-
$(HELM_DOCS) --log-level debug --template-files=charts/ocis/docs/templates/kube-versions.adoc.gotmpl --output-file=docs/kube-versions.adoc
1211
$(GOMPLATE) --file=charts/ocis/docs/templates/values.adoc.yaml.gotmpl --out=charts/ocis/docs/values.adoc.yaml
1312

1413
.PHONY: clean
1514
clean:
1615
@rm charts/ocis/ci/templated.yaml
1716

18-
1917
.PHONY: lint
2018
lint: $(KUBE_LINTER)
2119
# TODO: use helm from bingo
2220
helm lint charts/ocis
23-
helm template --kube-version 1.27.0 charts/ocis -f 'charts/ocis/ci/values.yaml' > charts/ocis/ci/templated.yaml
21+
helm template charts/ocis -f 'charts/ocis/ci/values.yaml' > charts/ocis/ci/templated.yaml
2422
$(KUBE_LINTER) lint charts/ocis/ci/templated.yaml
2523

2624

2725
.PHONY: api
28-
api: api-1.25.0 api-1.26.0
26+
api: api-1.25.0 api-1.26.0 api-1.27.0 api-1.28.0
2927

3028
.PHONY: api-1.25.0
3129
api-1.25.0: api-1.25.0-template api-1.25.0-kubeconform
@@ -49,6 +47,9 @@ api-1.26.0-template:
4947
api-1.26.0-kubeconform: $(KUBECONFORM)
5048
$(KUBECONFORM) -kubernetes-version 1.26.0 -summary -strict charts/ocis/ci/templated.yaml
5149

50+
.PHONY: api-1.27.0
51+
api-1.27.0: api-1.27.0-template api-1.27.0-kubeconform
52+
5253
.PHONY: api-1.27.0-template
5354
api-1.27.0-template:
5455
helm template --kube-version 1.27.0 charts/ocis -f 'charts/ocis/ci/values.yaml' > charts/ocis/ci/templated.yaml
@@ -57,6 +58,17 @@ api-1.27.0-template:
5758
api-1.27.0-kubeconform: $(KUBECONFORM)
5859
$(KUBECONFORM) -kubernetes-version 1.27.0 -summary -strict charts/ocis/ci/templated.yaml
5960

61+
.PHONY: api-1.28.0
62+
api-1.28.0: api-1.28.0-template api-1.28.0-kubeconform
63+
64+
.PHONY: api-1.28.0-template
65+
api-1.28.0-template:
66+
helm template --kube-version 1.28.0 charts/ocis -f 'charts/ocis/ci/values.yaml' > charts/ocis/ci/templated.yaml
67+
68+
.PHONY: api-1.28.0-kubeconform
69+
api-1.28.0-kubeconform: $(KUBECONFORM)
70+
$(KUBECONFORM) -kubernetes-version 1.28.0 -summary -strict charts/ocis/ci/templated.yaml
71+
6072
.PHONY: tools-update
6173
tools-update: $(BINGO)
6274
$(BINGO) get github.com/bwplotka/bingo@latest

charts/ocis/Chart.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ maintainers:
1111
type: application
1212
version: 0.5.0
1313
appVersion: 4.0.1
14-
# supported Kubernetes versions
15-
# should only contain non EOL versions from https://kubernetes.io/releases/patch-releases/#non-active-branch-history
16-
# if this changes, also kubernetesVersions in .drone.star needs to be changed
17-
kubeVersion: "~1.25.0-0 || ~1.26.0-0 || ~1.27.0-0 || ~1.28.0-0"
14+
kubeVersion: "" # please see https://doc.owncloud.com/ocis/next/deployment/container/orchestration/orchestration.html#get-the-chart for compatible Kubernetes versions
1815
sources:
1916
- https://github.com/owncloud/ocis-charts
2017
- https://github.com/owncloud/ocis

charts/ocis/docs/kube-versions.adoc

Lines changed: 0 additions & 14 deletions
This file was deleted.

charts/ocis/docs/templates/kube-versions.adoc.gotmpl

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)