Skip to content

Commit

Permalink
Fix issues with older versions of k8s for basic clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciprian Hacman committed Jan 2, 2020
1 parent 81d4cf6 commit dfbfc87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions pkg/model/components/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ func (b *KubeletOptionsBuilder) BuildOptions(o interface{}) error {
clusterSpec.Kubelet.FeatureGates["ExperimentalCriticalPodAnnotation"] = "true"
}
}
if _, found := clusterSpec.Kubelet.FeatureGates["PodPriority"]; !found {
if b.Context.IsKubernetesGTE("1.8.0") && b.Context.IsKubernetesLT("1.11") {
clusterSpec.Kubelet.FeatureGates["PodPriority"] = "true"
}
}

return nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

{{- if or (.KubeDNS.UpstreamNameservers) (.KubeDNS.StubDomains) }}
---
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -28,9 +27,9 @@ data:
stubDomains: |
{{ ToJSON .KubeDNS.StubDomains }}
{{- end }}
{{- end }}

---
{{- end }}

apiVersion: extensions/v1beta1
kind: Deployment
Expand Down

0 comments on commit dfbfc87

Please sign in to comment.