Skip to content

Commit 3ccb0a9

Browse files
committed
shorten podprefix name to be safe for any resource
1 parent abe2e17 commit 3ccb0a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/controllers/terraform_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ func (r *ReconcileTerraform) Reconcile(ctx context.Context, request reconcile.Re
606606
// Must trucate at 220 chars of original name to ensure room for the
607607
// suffixes that will be added (and possible future suffix expansion)
608608
tf.Status.PodNamePrefix = fmt.Sprintf("%s-%s",
609-
utils.TruncateResourceName(tf.Name, 220),
609+
utils.TruncateResourceName(tf.Name, 54),
610610
utils.StringWithCharset(8, utils.AlphaNum),
611611
)
612612
tf.Status.LastCompletedGeneration = 0

0 commit comments

Comments
 (0)