fix: pin scheduler-k3s:preview deployment id to the deployed release

Without this, the preview build invented a fresh timestamp for
`Values.global.deployment_id` and the resulting diff showed every
Deployment changing its `app.kubernetes.io/version` annotation - even when
nothing semantically changed. CommandPreview now reads the deployment id
out of `release.Chart.Metadata.Version` and passes it through a new
`BuildOptions.OverrideDeploymentID` parameter so the previewed manifests
carry the same version label as the live release. The deploy path still
generates a fresh timestamp.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-06-02 23:34:10 -04:00
1 parent cd66361895
commit f1e31ded41
3 files changed
+64 -20

No files matched your search

+1 -1
View File
@@ -476,7 +476,7 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e
return fmt.Errorf("Error creating kubernetes namespace for deployment: %w", err)
}
chartResult, err := BuildAppChart(ctx, appName, imageTag)
chartResult, err := BuildAppChart(ctx, appName, imageTag, BuildOptions{})
if err != nil {
return err
}