Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promote RetryGenerateName to GA in 1.32 #47770

Merged
merged 4 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ of the same resource. API resources are distinguished by their API group, resour
In cases when objects represent a physical entity, like a Node representing a physical host, when the host is re-created under the same name without deleting and re-creating the Node, Kubernetes treats the new host as the old one, which may lead to inconsistencies.
{{< /note >}}

The server may generate a name when `generateName` is provided in a resource create request instead of `name`.
jpbetz marked this conversation as resolved.
Show resolved Hide resolved
When `generateName` is used, the provided value is used as a name prefix, which server appends a generated suffix
to. Even though the name is generated, it may conflict with existing names resulting in a HTTP 409 resopnse. This
became far less likely to happen in Kubernetes v1.31 and later, since the server will make up to 8 attempt to generate a
unique name before returning a HTTP 409 response.

Below are four types of commonly used name constraints for resources.

### DNS Subdomain Names
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ stages:
- stage: alpha
defaultValue: false
fromVersion: "1.30"
toVersion: "1.31"
- stage: beta
defaultValue: true
fromVersion: "1.31"
tengqm marked this conversation as resolved.
Show resolved Hide resolved
toVersion: "1.32"
- stage: stable
defaultValue: true
fromVersion: "1.32"
---
Enables retrying of object creation when the
{{< glossary_tooltip text="API server" term_id="kube-apiserver" >}}
Expand Down