Skip to content

Commit d9872bb

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 8e0037e commit d9872bb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/v1alpha1/collaset_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ const (
6666
// HostnamePolicyPodName sets the pod's hostname to the pod name.
6767
// This requires namingStrategy.podNamingSuffixPolicy to be PersistentSequence,
6868
// as the pod name must be deterministic before creation.
69+
// The resulting pod name must also be a valid Kubernetes hostname label:
70+
// a single RFC 1123 DNS label containing no dots and no more than 63 characters.
71+
// Otherwise the Pod will be rejected by the API server when the hostname is set.
6972
HostnamePolicyPodName HostnamePolicyType = "PodName"
7073
)
7174

0 commit comments

Comments
 (0)