fix: thread secret annotations and labels through new helm charts

The new config and pull secret helm releases need to honor user-set annotations and labels for `--resource-type secret` so existing scheduler-k3s annotation tests keep passing. The dedicated charts now render `.Values.global.annotations` and `.Values.global.labels` onto their Secret manifest, and the deploy trigger plumbs `SecretAnnotations` and `SecretLabels` from the global annotation/label config. The rollback regression bats test now uses `dokku ps:rebuild` for its second deploy because git push of an unchanged ref is rejected by the dokku remote.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-04-29 12:18:06 -04:00
1 parent ef9bdc0379
commit 7ba453e588
6 files changed
+69 -16

No files matched your search

+12 -2
View File
@@ -935,12 +935,22 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e
}
}
if err := CreateOrUpdateConfigSecret(ctx, appName, env.Map()); err != nil {
if err := CreateOrUpdateConfigSecret(ctx, CreateOrUpdateConfigSecretInput{
AppName: appName,
Env: env.Map(),
Annotations: globalAnnotations.SecretAnnotations,
Labels: globalLabels.SecretLabels,
}); err != nil {
return fmt.Errorf("Error syncing config secret: %w", err)
}
if dokkuManagedPullSecret {
if err := CreateOrUpdateImagePullSecret(ctx, appName, dokkuPullSecretBytes); err != nil {
if err := CreateOrUpdateImagePullSecret(ctx, CreateOrUpdateImagePullSecretInput{
AppName: appName,
DockerConfigJSON: dokkuPullSecretBytes,
Annotations: globalAnnotations.SecretAnnotations,
Labels: globalLabels.SecretLabels,
}); err != nil {
return fmt.Errorf("Error syncing image pull secret: %w", err)
}
} else {