diff --git a/environment/container/kubernetes/kubernetes.go b/environment/container/kubernetes/kubernetes.go index d6b98320..692152d3 100644 --- a/environment/container/kubernetes/kubernetes.go +++ b/environment/container/kubernetes/kubernetes.go @@ -104,6 +104,12 @@ func (c *kubernetesRuntime) Provision(ctx context.Context) error { conf = c.config() } + if conf.Version == "" { + // this ensure if `version` tag in `kubernetes` section in yaml is empty, + // it should assign with the `DefaultVersion` for the baseURL + conf.Version = DefaultVersion + } + if c.isVersionInstalled(conf.Version) { // runtime has changed, ensure the required images are in the registry if currentRuntime := c.runtime(); currentRuntime != "" && currentRuntime != runtime {