Skip to content

Commit

Permalink
Expose API server extra args in k0s config (k0rdent#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
eromanova authored Feb 11, 2025
1 parent ef39101 commit c5d6dd4
Show file tree
Hide file tree
Showing 35 changed files with 167 additions and 20 deletions.
2 changes: 1 addition & 1 deletion templates/cluster/aws-hosted-cp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ spec:
metadata:
name: k0s
spec:
{{- with .Values.k0s.api.extraArgs }}
api:
extraArgs:
{{- toYaml . | nindent 10 }}
{{- end }}
network:
provider: calico
calico:
Expand Down
13 changes: 13 additions & 0 deletions templates/cluster/aws-hosted-cp/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,19 @@
"version":{
"description": "K0s version to use",
"type": "string"
},
"api": {
"description": "Kubernetes api-server parameters",
"type": "object",
"properties": {
"extraArgs": {
"description": "Map of key-values (strings) for any extra arguments to pass down to Kubernetes api-server process",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion templates/cluster/aws-hosted-cp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ k0smotron:
# K0s parameters
k0s:
version: v1.31.5+k0s.0
api:
extraArgs: {}

# extensions defines custom Helm and image repositories to use for pulling
# k0s extensions.
Expand All @@ -58,4 +60,4 @@ extensions:
imageRepository: ""

# Name of the management cluster that this template is being deployed on
managementClusterName: ""
managementClusterName: ""
2 changes: 1 addition & 1 deletion templates/cluster/aws-standalone-cp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ spec:
api:
extraArgs:
anonymous-auth: "true"
{{- with .Values.k0s.api.extraArgs }}
{{- toYaml . | nindent 12 }}
{{- end }}
network:
provider: calico
calico:
Expand Down
13 changes: 13 additions & 0 deletions templates/cluster/aws-standalone-cp/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,19 @@
"version":{
"description": "K0s version to use",
"type": "string"
},
"api": {
"description": "Kubernetes api-server parameters",
"type": "object",
"properties": {
"extraArgs": {
"description": "Map of key-values (strings) for any extra arguments to pass down to Kubernetes api-server process",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions templates/cluster/aws-standalone-cp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ worker:
# K0s parameters
k0s:
version: v1.31.5+k0s.0
api:
extraArgs: {}

# extensions defines custom Helm and image repositories to use for pulling
# k0s extensions.
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster/azure-hosted-cp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ spec:
metadata:
name: k0s
spec:
{{- with .Values.k0s.api.extraArgs }}
api:
extraArgs:
{{- toYaml . | nindent 10 }}
{{- end }}
network:
provider: calico
calico:
Expand Down
13 changes: 13 additions & 0 deletions templates/cluster/azure-hosted-cp/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,19 @@
"version":{
"description": "K0s version to use",
"type": "string"
},
"api": {
"description": "Kubernetes api-server parameters",
"type": "object",
"properties": {
"extraArgs": {
"description": "Map of key-values (strings) for any extra arguments to pass down to Kubernetes api-server process",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions templates/cluster/azure-hosted-cp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ k0smotron:
# K0s parameters
k0s:
version: v1.31.5+k0s.0
api:
extraArgs: {}

# extensions defines custom Helm and image repositories to use for pulling
# k0s extensions.
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster/azure-standalone-cp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ spec:
api:
extraArgs:
anonymous-auth: "true"
{{- with .Values.k0s.api.extraArgs }}
{{- toYaml . | nindent 12 }}
{{- end }}
network:
provider: calico
calico:
Expand Down
13 changes: 13 additions & 0 deletions templates/cluster/azure-standalone-cp/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,19 @@
"version":{
"description": "K0s version to use",
"type": "string"
},
"api": {
"description": "Kubernetes api-server parameters",
"type": "object",
"properties": {
"extraArgs": {
"description": "Map of key-values (strings) for any extra arguments to pass down to Kubernetes api-server process",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions templates/cluster/azure-standalone-cp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ worker:
# K0s parameters
k0s:
version: v1.31.5+k0s.0
api:
extraArgs: {}

# extensions defines custom Helm and image repositories to use for pulling
# k0s extensions.
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster/openstack-standalone-cp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
api:
extraArgs:
anonymous-auth: "true"
{{- with .Values.k0s.api.extraArgs }}
{{- toYaml . | nindent 12 }}
{{- end }}
extensions:
helm:
repositories:
Expand Down
13 changes: 13 additions & 0 deletions templates/cluster/openstack-standalone-cp/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,19 @@
"version": {
"type": "string",
"description": "K0s version to use"
},
"api": {
"description": "Kubernetes api-server parameters",
"type": "object",
"properties": {
"extraArgs": {
"description": "Map of key-values (strings) for any extra arguments to pass down to Kubernetes api-server process",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions templates/cluster/openstack-standalone-cp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ worker:

k0s:
version: v1.31.5+k0s.0
api:
extraArgs: {}
2 changes: 1 addition & 1 deletion templates/cluster/vsphere-hosted-cp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ spec:
metadata:
name: k0s
spec:
{{- with .Values.k0s.api.extraArgs }}
api:
extraArgs:
{{- toYaml . | nindent 10 }}
{{- end }}
network:
provider: calico
calico:
Expand Down
13 changes: 13 additions & 0 deletions templates/cluster/vsphere-hosted-cp/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,19 @@
"version":{
"description": "K0s version to use",
"type": "string"
},
"api": {
"description": "Kubernetes api-server parameters",
"type": "object",
"properties": {
"extraArgs": {
"description": "Map of key-values (strings) for any extra arguments to pass down to Kubernetes api-server process",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions templates/cluster/vsphere-hosted-cp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ k0smotron:
# K0s parameters
k0s:
version: v1.31.5+k0s.0
api:
extraArgs: {}

# extensions defines custom Helm and image repositories to use for pulling
# k0s extensions.
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster/vsphere-standalone-cp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ spec:
- {{ .Values.controlPlaneEndpointIP }}
extraArgs:
anonymous-auth: "true"
{{- with .Values.k0s.api.extraArgs }}
{{- toYaml . | nindent 12 }}
{{- end }}
network:
provider: calico
calico:
Expand Down
13 changes: 13 additions & 0 deletions templates/cluster/vsphere-standalone-cp/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,19 @@
"version":{
"description": "K0s version to use",
"type": "string"
},
"api": {
"description": "Kubernetes api-server parameters",
"type": "object",
"properties": {
"extraArgs": {
"description": "Map of key-values (strings) for any extra arguments to pass down to Kubernetes api-server process",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions templates/cluster/vsphere-standalone-cp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ worker:
# K0s parameters
k0s:
version: v1.31.5+k0s.0
api:
extraArgs: {}

# extensions defines custom Helm and image repositories to use for pulling
# k0s extensions.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: ClusterTemplate
metadata:
name: aws-hosted-cp-0-1-0
name: aws-hosted-cp-0-1-1
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartSpec:
chart: aws-hosted-cp
version: 0.1.0
version: 0.1.1
interval: 10m0s
sourceRef:
kind: HelmRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: ClusterTemplate
metadata:
name: aws-standalone-cp-0-1-0
name: aws-standalone-cp-0-1-1
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartSpec:
chart: aws-standalone-cp
version: 0.1.0
version: 0.1.1
interval: 10m0s
sourceRef:
kind: HelmRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: k0rdent.mirantis.com/v1alpha1
kind: ClusterTemplate
metadata:
name: azure-hosted-cp-0-1-0
name: azure-hosted-cp-0-1-1
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartSpec:
chart: azure-hosted-cp
version: 0.1.0
version: 0.1.1
interval: 10m0s
sourceRef:
kind: HelmRepository
Expand Down
Loading

0 comments on commit c5d6dd4

Please sign in to comment.