Skip to content

Commit

Permalink
fix: provide a semantic version parsed version for KUBE_VERSION (#8250)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Jahns <github@patrickjahns.de>
  • Loading branch information
patrickjahns authored Jan 23, 2022
1 parent 285454f commit c3b3521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reposerver/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ func getPluginEnvs(envVars *v1alpha1.Env, q *apiclient.ManifestRequest, creds gi
defer func() { _ = closer.Close() }()
env = append(env, environ...)
}
env = append(env, "KUBE_VERSION="+q.KubeVersion)
env = append(env, "KUBE_VERSION="+text.SemVer(q.KubeVersion))
env = append(env, "KUBE_API_VERSIONS="+strings.Join(q.ApiVersions, ","))

parsedEnv := make(v1alpha1.Env, len(env))
Expand Down

0 comments on commit c3b3521

Please sign in to comment.