Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kubernetes/api
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.31.3
Choose a base ref
...
head repository: kubernetes/api
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.32.1
Choose a head ref

Commits on Mar 27, 2024

  1. fix description for PersistentVolumeSource and VolumeSource

    Kubernetes-commit: 7cb4a1f144a094b11aba32527974d2323f55fed4
    carlory authored and k8s-publishing-bot committed Mar 27, 2024
    Copy the full SHA
    efdeb32 View commit details

Commits on May 21, 2024

  1. added a comment that statuses lists are not being validated

    Kubernetes-commit: 01851b89f48c904180547086646797fcd3d3d5d1
    SergeyKanzhelev authored and k8s-publishing-bot committed May 21, 2024
    Copy the full SHA
    c6b73b3 View commit details
  2. generated files

    Kubernetes-commit: 4fc209f12be9c9a1059ccc93c07f68be667b5544
    SergeyKanzhelev authored and k8s-publishing-bot committed May 21, 2024
    Copy the full SHA
    ec01ced View commit details

Commits on May 23, 2024

  1. fix broken links

    Signed-off-by: Oilbeater <liumengxinfly@gmail.com>
    
    Kubernetes-commit: 24e81bf139390bb6a4f45b5a072013a9e7634890
    oilbeater authored and k8s-publishing-bot committed May 23, 2024
    Copy the full SHA
    38b7f74 View commit details

Commits on May 31, 2024

  1. Add missing comments in k8s.io/api/core/v1

    Signed-off-by: Bo Wang <wangbob@uniontech.com>
    
    Kubernetes-commit: 495af2a3d470dcfb9e9b330e08a16d6329dbb901
    ut-wangbo authored and k8s-publishing-bot committed May 31, 2024
    Copy the full SHA
    4063a68 View commit details

Commits on Jul 23, 2024

  1. update codegen and openapi

    Kubernetes-commit: 919e7abe0f560a62d055fafbc3855a7cabbcf6ee
    Jefftree authored and k8s-publishing-bot committed Jul 23, 2024
    Copy the full SHA
    cbb97a5 View commit details

Commits on Jul 25, 2024

  1. Merge pull request #124012 from Jefftree/le-controller

    Coordinated Leader Election
    
    Kubernetes-commit: 5f5c02da51cd3146f30c6ee56013c983f4999d9c
    k8s-publishing-bot committed Jul 25, 2024
    Copy the full SHA
    fb1fc30 View commit details

Commits on Jul 31, 2024

  1. DRA: Fix ResourceClaimTemplateSpec comment

    ObjectMeta for the ResourceClaimTemplateSpec are copied into
    ResourceClaim not PVC.
    
    Signed-off-by: Lionel Jouin <lionel.jouin@est.tech>
    
    Kubernetes-commit: 4532d90068ef3113d0e5d37bb916549e45ef204c
    LionelJouin authored and k8s-publishing-bot committed Jul 31, 2024
    Copy the full SHA
    d14dfa6 View commit details

Commits on Aug 1, 2024

  1. fix comment in core/v1 package

    Kubernetes-commit: 691b5b2f07258ae5632538f1d5c974268c8b58d3
    googs1025 authored and k8s-publishing-bot committed Aug 1, 2024
    Copy the full SHA
    87acb39 View commit details

Commits on Aug 5, 2024

  1. Updated incorrect description of persistentVolumeClaimRetentionPolicy

    Kubernetes-commit: 56bbae4807989cd43eff17cf9fa93f7b54c087bd
    yangjunmyfm192085 authored and k8s-publishing-bot committed Aug 5, 2024
    Copy the full SHA
    41aad2d View commit details

Commits on Aug 14, 2024

  1. Merge pull request #126545 from yangjunmyfm192085/updatepersistentVol…

    …umeClaimRetentionPolicy
    
    Update incorrect description of persistentVolumeClaimRetentionPolicy
    
    Kubernetes-commit: 6a478b4306ea9ae3b8f86bd1ef71072d9a03be22
    k8s-publishing-bot committed Aug 14, 2024
    Copy the full SHA
    42ff139 View commit details
  2. Add v1.31.0 API testdata

    Kubernetes-commit: 84e4523017d2e6aff277c8d6cd0addf53221c71a
    SataQiu authored and k8s-publishing-bot committed Aug 14, 2024
    Copy the full SHA
    37e89a9 View commit details
  3. Remove v1.29.0 API testdata

    Kubernetes-commit: 68d22567cbaf780d80f955aab3a9807ee8c4e1a4
    SataQiu authored and k8s-publishing-bot committed Aug 14, 2024
    Copy the full SHA
    5eb7d74 View commit details
  4. Merge pull request #126482 from LionelJouin/fix-dra-comment

    DRA: Fix ResourceClaimTemplateSpec comment
    
    Kubernetes-commit: aa2938f15edc6f9478610d1c6c53f5762c5aab93
    k8s-publishing-bot committed Aug 14, 2024
    Copy the full SHA
    2eb892c View commit details
  5. Merge pull request #126673 from SataQiu/v1.31.0-api-testdata

    Add V1.31.0 api testdata and remove v1.29.0 api testdata
    
    Kubernetes-commit: ba604434a83ce86498ad32a80e8dc7447ee29095
    k8s-publishing-bot committed Aug 14, 2024
    Copy the full SHA
    5b597d2 View commit details

Commits on Aug 16, 2024

  1. fix v1a3 ResourceSliceList metadata field name

    This field was incorrectly named "listMeta" and was missed in review.
    
    Kubernetes-commit: 1e8002cd03c0e26fd313a176f1aec98cda1480b0
    thockin authored and k8s-publishing-bot committed Aug 16, 2024
    Copy the full SHA
    e893bb9 View commit details

Commits on Aug 17, 2024

  1. Merge pull request #126749 from thockin/master

    fix v1a3 ResourceSliceList metadata field name
    
    Kubernetes-commit: 572c0a10f984d8c8977c061c108118f50ae57ca7
    k8s-publishing-bot committed Aug 17, 2024
    Copy the full SHA
    0a3fbba View commit details
  2. Move ncdc to emeritus

    I am moving myself to emeritus as I am now firmly on the end-user side
    of things.
    
    Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
    
    Kubernetes-commit: 3ab816dcabf37acda33c665ab5aa85f1f6163bc1
    ncdc authored and k8s-publishing-bot committed Aug 17, 2024
    Copy the full SHA
    6dd7b52 View commit details

Commits on Aug 22, 2024

  1. Use emeritus_*

    Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
    
    Kubernetes-commit: 0e228be96f352359847d013ff889522524e1cb98
    ncdc authored and k8s-publishing-bot committed Aug 22, 2024
    Copy the full SHA
    9ccd881 View commit details

Commits on Aug 27, 2024

  1. re-vendor k8s.io/kube-openapi

    Kubernetes-commit: ea2bdb6334ec1a2821a96163d83480d5fdb1861b
    Jefftree authored and k8s-publishing-bot committed Aug 27, 2024
    Copy the full SHA
    0d659a2 View commit details
  2. DRA API: update some comments

    Mentioning potential future API extensions help with understanding why the API
    is defined the way it is when reading just the types.go. Those stand-alone
    comments appear neither in the Go doc nor OpenAPI.
    
    This corresponds to kubernetes/enhancements#4808.
    
    Kubernetes-commit: 148469d7ff00960bc13bd331009eec1db50122de
    pohly authored and k8s-publishing-bot committed Aug 27, 2024
    Copy the full SHA
    56b18fa View commit details
  3. Merge pull request #126787 from Jefftree/update-kube-openapi

    Bump k8s.io/kube-openapi and k8s.io/gengo
    
    Kubernetes-commit: f1a922c8e6f951381450ee3c2922ca018f14a82e
    k8s-publishing-bot committed Aug 27, 2024
    Copy the full SHA
    7ac1f76 View commit details
  4. Remove corev1.Binding deprecation message

    Kubernetes-commit: adf6baa857d5cc0c6dd95dc801a08b8d091ceafc
    tallclair authored and k8s-publishing-bot committed Aug 27, 2024
    Copy the full SHA
    6d975e4 View commit details

Commits on Aug 29, 2024

  1. clarify that new usages of generic *Reference structs are discouraged

    Kubernetes-commit: 06628afc9944a74ba8d87b033023bffc430c6bb3
    deads2k authored and k8s-publishing-bot committed Aug 29, 2024
    Copy the full SHA
    1aa9f66 View commit details
  2. generated

    Kubernetes-commit: 39c6f57b54d97bda3c1be8e07be888d6de167219
    deads2k authored and k8s-publishing-bot committed Aug 29, 2024
    Copy the full SHA
    91507bf View commit details
  3. Merge pull request #127006 from deads2k/clarify-local-ref

    clarify that new usages of generic *ObjectReference structs are discouraged
    
    Kubernetes-commit: c93f93c714ed0e6dbd765dc93cffa00a5f3a0cfd
    k8s-publishing-bot committed Aug 29, 2024
    Copy the full SHA
    2ab66df View commit details

Commits on Aug 31, 2024

  1. Merge pull request #126940 from pohly/dra-1.31-api-comments

    DRA API: update some comments
    
    Kubernetes-commit: 2ecff6d0db8ccd65f3c34da054a917afd4a8e8d7
    k8s-publishing-bot committed Aug 31, 2024
    Copy the full SHA
    2ed5b3f View commit details

Commits on Sep 4, 2024

  1. Update TrafficDistribution comment to reflect graduated beta status i…

    …n v1.31
    
    Kubernetes-commit: 2cdcaf1e8f5e85a20ffb63e3bbff15eb6e862e92
    robert-cronin authored and k8s-publishing-bot committed Sep 4, 2024
    Copy the full SHA
    6c684f9 View commit details
  2. Update TrafficDistribution comment to reflect graduated beta status i…

    …n v1.31
    
    Kubernetes-commit: 67fc3798b6a2bd70a8b2d4d0a9918a74f19883e4
    robert-cronin authored and k8s-publishing-bot committed Sep 4, 2024
    Copy the full SHA
    0bda2b2 View commit details
  3. Merge pull request #127117 from robert-cronin/fix/traffic-distributio…

    …n-comment
    
    Fix traffic distribution comment to reflect graduated status in v1.31
    
    Kubernetes-commit: cc27d21ad7b4fe60ee55ccf33fd29a1257e00ada
    k8s-publishing-bot committed Sep 4, 2024
    Copy the full SHA
    4219046 View commit details

Commits on Sep 5, 2024

  1. chore: bump DefaultKubeBinaryVersion to 1.32, make 1.32 CEL changes, …

    …fix int tests to handle 1 version off API deprecation, and fix prerelease-lifecycle-gen for # of APIs
    
    Kubernetes-commit: 701e6c7ab191cb75824378b4a2aceac67be35462
    aaron-prindle authored and k8s-publishing-bot committed Sep 5, 2024
    Copy the full SHA
    f57f3ce View commit details

Commits on Sep 10, 2024

  1. Update go.mod to go 1.23

    Kubernetes-commit: 65ef53139012dee36c08f558604dea48af170e11
    liggitt authored and k8s-publishing-bot committed Sep 10, 2024
    Copy the full SHA
    93ea1cf View commit details
  2. Pin godebug default to go1.23

    Kubernetes-commit: 102a9dbab1764e8793d0237b25143fa49cd96831
    liggitt authored and k8s-publishing-bot committed Sep 10, 2024
    Copy the full SHA
    1e79482 View commit details

Commits on Sep 12, 2024

  1. Merge pull request #127271 from liggitt/go1.23

    Update go.mod for go 1.23
    
    Kubernetes-commit: c775fb2238e1ed48f62f02898bbb3ecee993e044
    k8s-publishing-bot committed Sep 12, 2024
    Copy the full SHA
    9dc1a95 View commit details

Commits on Sep 18, 2024

  1. Merge pull request #126977 from aaron-prindle/compat-version-132

    chore: bump DefaultKubeBinaryVersion to 1.32, make 1.32 CEL changes, fix int tests to handle 1 version off API deprecation, and fix prerelease-lifecycle-gen for # of APIs
    
    Kubernetes-commit: 920e9e34b07d0930a28b192b5cdc912e79d8562b
    k8s-publishing-bot committed Sep 18, 2024
    Copy the full SHA
    e14a61a View commit details

Commits on Sep 20, 2024

  1. Merge pull request #126760 from ncdc/ncdc/emeritus

    Move ncdc to emeritus
    
    Kubernetes-commit: f9a57ba82d05a8b9f442092f0b391ae8bd74287c
    k8s-publishing-bot committed Sep 20, 2024
    Copy the full SHA
    71385f0 View commit details

Commits on Sep 26, 2024

  1. docs: typo fix in VolumeAttachments

    Fix typo and grammar in comments that get reflected through to the
    generated documentation, regarding VolumeAttachments' use of
    PersistentVolumes and PersistentVolumeClaims.
    
    Signed-off-by: Eric Blake <eblake@redhat.com>
    
    Kubernetes-commit: fe5b74b1f82c57a176e1ba1d239519ce19c2a32b
    ebblake authored and k8s-publishing-bot committed Sep 26, 2024
    Copy the full SHA
    3de15a6 View commit details

Commits on Sep 30, 2024

  1. DRA API: implement CEL cost limit

    The main purpose is to protect against denial-of-service attacks.  Scheduling
    time depends a lot on unpredictable factors and expected scheduling time also
    varies, so no attempt is made to limit the overall time spent on evaluating CEL
    expressions per claim.
    
    Kubernetes-commit: f548fc2264488001a4b7b979b44ba64895663b7f
    pohly authored and k8s-publishing-bot committed Sep 30, 2024
    Copy the full SHA
    659a4e4 View commit details

Commits on Oct 1, 2024

  1. Merge pull request #127664 from ebblake/typofix

    docs: typo fix in VolumeAttachments
    
    Kubernetes-commit: a47da4bc677e8441c7a536108d20e97b05bbb3ec
    k8s-publishing-bot committed Oct 1, 2024
    Copy the full SHA
    5c8e0b9 View commit details

Commits on Oct 5, 2024

  1. remove unnecessary dependency on k8s.io/api

    Kubernetes-commit: 4c522bf21b2ac03e2a8ca6b726ddcdbc7ef0f440
    aojea authored and k8s-publishing-bot committed Oct 5, 2024
    Copy the full SHA
    d83f134 View commit details

Commits on Oct 7, 2024

  1. Merge pull request #127876 from aojea/k8s_api

    remove unnecessary dependency on k8s.io/api
    
    Kubernetes-commit: 7fb8fe2cf7678dcd5ef44532398fecb6b14a50d2
    k8s-publishing-bot committed Oct 7, 2024
    Copy the full SHA
    f2b3dfa View commit details

Commits on Oct 10, 2024

  1. Update sigs.k8s.io/json to go1.23

    Kubernetes-commit: 8eff759b6ac7c3bb0c6a8823c751f5a578d6f721
    liggitt authored and k8s-publishing-bot committed Oct 10, 2024
    Copy the full SHA
    9942c89 View commit details
  2. Merge pull request #127942 from liggitt/json123

    sigs.k8s.io/json go 1.23 bump
    
    Kubernetes-commit: fc318e3ba4cb1db822d7f802993059846f64179d
    k8s-publishing-bot committed Oct 10, 2024
    Copy the full SHA
    9b59401 View commit details
  3. Update moby/runc dependencies

    Signed-off-by: Davanum Srinivas <davanum@gmail.com>
    
    Kubernetes-commit: 521f2d106b9c5744ce57a8ec03124bcdadbca986
    dims authored and k8s-publishing-bot committed Oct 10, 2024
    Copy the full SHA
    af94f16 View commit details

Commits on Oct 11, 2024

  1. October 2024 golang.org/x bump

    Nothing major here, but nothing liable to cause pain to downstreams
    either.
    
    * golang/crypto@v0.26.0...v0.28.0 (there’s
      a SHA3 fix there but it’s only relevant for 32-bit platforms)
    * golang/net@v0.28.0...v0.30.0 (mostly
      http2; route address parsing fix on Darwin)
    * golang/oauth2@v0.21.0...v0.23.0 (Google
      license fix)
    * golang/sys@v0.23.0...v0.26.0 (faster
      getrandom() on Linux through the vDSO; improved RISC-V support)
    * golang/term@v0.23.0...v0.25.0
    * golang/time@v0.3.0...v0.7.0 (0-limit
      handling fix in x/time/rate; Google license fix)
    * golang/tools@v0.24.0...v0.26.0
    
    This doesn’t include golang.org/x/exp; that doesn’t have any relevant
    changes. There’s an apidiff fix but we always pull in the latest
    apidiff anyway.
    
    Signed-off-by: Stephen Kitt <skitt@redhat.com>
    
    Kubernetes-commit: 6c5a528727c30803d4426b29c06ae5d350619877
    skitt authored and k8s-publishing-bot committed Oct 11, 2024
    Copy the full SHA
    ef33a69 View commit details
  2. Merge pull request #127985 from dims/update-moby-runc-dependencies-oc…

    …t-10
    
    Update moby/runc dependencies
    
    Kubernetes-commit: 6e5e8f374e834fa8dab341bde5c522704ed55ba6
    k8s-publishing-bot committed Oct 11, 2024
    Copy the full SHA
    b2e7d73 View commit details
  3. Merge pull request #127998 from skitt/golang-x-oct-2024

    October 2024 golang.org/x bump
    
    Kubernetes-commit: 8cbb11519c54c120e2dc120a4799e53abbfea4a4
    k8s-publishing-bot committed Oct 11, 2024
    Copy the full SHA
    a432ebe View commit details
  4. DRA: remove "classic DRA"

    This removes the DRAControlPlaneController feature gate, the fields controlled
    by it (claim.spec.controller, claim.status.deallocationRequested,
    claim.status.allocation.controller, class.spec.suitableNodes), the
    PodSchedulingContext type, and all code related to the feature.
    
    The feature gets removed because there is no path towards beta and GA and DRA
    with "structured parameters" should be able to replace it.
    
    Kubernetes-commit: f84eb5ecf894fa0fc4e0d05da52ef51d4cd723d9
    pohly authored and k8s-publishing-bot committed Oct 11, 2024
    Copy the full SHA
    865f567 View commit details

Commits on Oct 17, 2024

  1. Graduate JobManagedBy to Beta in 1.32

    # Conflicts:
    #	pkg/features/kube_features.go
    
    Kubernetes-commit: 70a8ceb6f0cb7d914dd528f9e947f7472b916bc7
    mimowo authored and k8s-publishing-bot committed Oct 17, 2024
    Copy the full SHA
    59ba9ea View commit details
  2. Drop self-referencing replace directives

    Kubernetes-commit: 3be1109829d4b0921972bb8b5f66a4d179ff6255
    liggitt authored and k8s-publishing-bot committed Oct 17, 2024
    Copy the full SHA
    1cad93f View commit details
Showing 741 changed files with 26,667 additions and 63,045 deletions.
1 change: 1 addition & 0 deletions admissionregistration/v1alpha1/doc.go
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ limitations under the License.
// +k8s:deepcopy-gen=package
// +k8s:protobuf-gen=package
// +k8s:openapi-gen=true
// +k8s:prerelease-lifecycle-gen=true
// +groupName=admissionregistration.k8s.io

// Package v1alpha1 is the v1alpha1 version of the API.
4,404 changes: 3,321 additions & 1,083 deletions admissionregistration/v1alpha1/generated.pb.go

Large diffs are not rendered by default.

301 changes: 301 additions & 0 deletions admissionregistration/v1alpha1/generated.proto

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions admissionregistration/v1alpha1/register.go
Original file line number Diff line number Diff line change
@@ -50,6 +50,10 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&ValidatingAdmissionPolicyList{},
&ValidatingAdmissionPolicyBinding{},
&ValidatingAdmissionPolicyBindingList{},
&MutatingAdmissionPolicy{},
&MutatingAdmissionPolicyList{},
&MutatingAdmissionPolicyBinding{},
&MutatingAdmissionPolicyBindingList{},
)
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
return nil
343 changes: 343 additions & 0 deletions admissionregistration/v1alpha1/types.go

Large diffs are not rendered by default.

95 changes: 95 additions & 0 deletions admissionregistration/v1alpha1/types_swagger_doc_generated.go

Large diffs are not rendered by default.

252 changes: 252 additions & 0 deletions admissionregistration/v1alpha1/zz_generated.deepcopy.go
166 changes: 166 additions & 0 deletions admissionregistration/v1alpha1/zz_generated.prerelease-lifecycle.go
3 changes: 1 addition & 2 deletions apps/v1/generated.proto
5 changes: 2 additions & 3 deletions apps/v1/types.go
Original file line number Diff line number Diff line change
@@ -142,7 +142,7 @@ const (
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
// will not be deleted.
RetainPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Retain"
// RetentionPersistentVolumeClaimRetentionPolicyType specifies that
// DeletePersistentVolumeClaimRetentionPolicyType specifies that
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
// will be deleted in the scenario specified in
// StatefulSetPersistentVolumeClaimRetentionPolicy.
@@ -255,8 +255,7 @@ type StatefulSetSpec struct {
// volume claims are created as needed and retained until manually deleted. This
// policy allows the lifecycle to be altered, for example by deleting persistent
// volume claims when their stateful set is deleted, or when their pod is scaled
// down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled,
// which is beta.
// down.
// +optional
PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaimRetentionPolicy"`

2 changes: 1 addition & 1 deletion apps/v1/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
@@ -354,7 +354,7 @@ var map_StatefulSetSpec = map[string]string{
"updateStrategy": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.",
"revisionHistoryLimit": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.",
"minReadySeconds": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
"persistentVolumeClaimRetentionPolicy": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.",
"persistentVolumeClaimRetentionPolicy": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down.",
"ordinals": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested.",
}

3 changes: 1 addition & 2 deletions apps/v1beta1/generated.proto
7 changes: 3 additions & 4 deletions apps/v1beta1/types.go
Original file line number Diff line number Diff line change
@@ -181,11 +181,11 @@ const (
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
// will not be deleted.
RetainPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Retain"
// RetentionPersistentVolumeClaimRetentionPolicyType specifies that
// DeletePersistentVolumeClaimRetentionPolicyType specifies that
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
// will be deleted in the scenario specified in
// StatefulSetPersistentVolumeClaimRetentionPolicy.
RetentionPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Delete"
DeletePersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Delete"
)

// StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs
@@ -290,8 +290,7 @@ type StatefulSetSpec struct {
MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,9,opt,name=minReadySeconds"`

// PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from
// the StatefulSet VolumeClaimTemplates. This requires the
// StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha.
// the StatefulSet VolumeClaimTemplates.
// +optional
PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaimRetentionPolicy"`

2 changes: 1 addition & 1 deletion apps/v1beta1/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
@@ -258,7 +258,7 @@ var map_StatefulSetSpec = map[string]string{
"updateStrategy": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.",
"revisionHistoryLimit": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.",
"minReadySeconds": "minReadySeconds is the minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
"persistentVolumeClaimRetentionPolicy": "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha.",
"persistentVolumeClaimRetentionPolicy": "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.",
"ordinals": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested.",
}

3 changes: 1 addition & 2 deletions apps/v1beta2/generated.proto
7 changes: 3 additions & 4 deletions apps/v1beta2/types.go
Original file line number Diff line number Diff line change
@@ -191,11 +191,11 @@ const (
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
// will not be deleted.
RetainPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Retain"
// RetentionPersistentVolumeClaimRetentionPolicyType specifies that
// DeletePersistentVolumeClaimRetentionPolicyType specifies that
// PersistentVolumeClaims associated with StatefulSet VolumeClaimTemplates
// will be deleted in the scenario specified in
// StatefulSetPersistentVolumeClaimRetentionPolicy.
RetentionPersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Delete"
DeletePersistentVolumeClaimRetentionPolicyType PersistentVolumeClaimRetentionPolicyType = "Delete"
)

// StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs
@@ -300,8 +300,7 @@ type StatefulSetSpec struct {
MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,9,opt,name=minReadySeconds"`

// PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from
// the StatefulSet VolumeClaimTemplates. This requires the
// StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha.
// the StatefulSet VolumeClaimTemplates.
// +optional
PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaimRetentionPolicy"`

2 changes: 1 addition & 1 deletion apps/v1beta2/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
@@ -382,7 +382,7 @@ var map_StatefulSetSpec = map[string]string{
"updateStrategy": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.",
"revisionHistoryLimit": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.",
"minReadySeconds": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
"persistentVolumeClaimRetentionPolicy": "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha.",
"persistentVolumeClaimRetentionPolicy": "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.",
"ordinals": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested.",
}

3 changes: 2 additions & 1 deletion autoscaling/OWNERS
Original file line number Diff line number Diff line change
@@ -7,5 +7,6 @@ reviewers:
- deads2k
- caesarxuchao
- sttts
- ncdc
- dims
emeritus_reviewers:
- ncdc
5 changes: 0 additions & 5 deletions autoscaling/v1/generated.proto
5 changes: 0 additions & 5 deletions autoscaling/v1/types.go
Original file line number Diff line number Diff line change
@@ -193,8 +193,6 @@ const (
type MetricSpec struct {
// type is the type of metric source. It should be one of "ContainerResource",
// "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object.
// Note: "ContainerResource" type is available on when the feature-gate
// HPAContainerMetrics is enabled
Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"`

// object refers to a metric describing a single kubernetes object
@@ -221,7 +219,6 @@ type MetricSpec struct {
// current scale target (e.g. CPU or memory). Such metrics are built in to
// Kubernetes, and have special scaling options on top of those available
// to normal per-pod metrics using the "pods" source.
// This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.
// +optional
ContainerResource *ContainerResourceMetricSource `json:"containerResource,omitempty" protobuf:"bytes,7,opt,name=containerResource"`

@@ -355,8 +352,6 @@ type ExternalMetricSource struct {
type MetricStatus struct {
// type is the type of metric source. It will be one of "ContainerResource",
// "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
// Note: "ContainerResource" type is available on when the feature-gate
// HPAContainerMetrics is enabled
Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"`

// object refers to a metric describing a single kubernetes object
6 changes: 3 additions & 3 deletions autoscaling/v1/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
@@ -147,11 +147,11 @@ func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string {

var map_MetricSpec = map[string]string{
"": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).",
"type": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled",
"type": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.",
"object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
"pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
"resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"containerResource": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.",
"containerResource": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
}

@@ -161,7 +161,7 @@ func (MetricSpec) SwaggerDoc() map[string]string {

var map_MetricStatus = map[string]string{
"": "MetricStatus describes the last-read state of a single metric.",
"type": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled",
"type": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.",
"object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
"pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
"resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
5 changes: 0 additions & 5 deletions autoscaling/v2/generated.proto
5 changes: 0 additions & 5 deletions autoscaling/v2/types.go
Original file line number Diff line number Diff line change
@@ -102,8 +102,6 @@ type CrossVersionObjectReference struct {
type MetricSpec struct {
// type is the type of metric source. It should be one of "ContainerResource", "External",
// "Object", "Pods" or "Resource", each mapping to a matching field in the object.
// Note: "ContainerResource" type is available on when the feature-gate
// HPAContainerMetrics is enabled
Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"`

// object refers to a metric describing a single kubernetes object
@@ -130,7 +128,6 @@ type MetricSpec struct {
// each pod of the current scale target (e.g. CPU or memory). Such metrics are
// built in to Kubernetes, and have special scaling options on top of those
// available to normal per-pod metrics using the "pods" source.
// This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.
// +optional
ContainerResource *ContainerResourceMetricSource `json:"containerResource,omitempty" protobuf:"bytes,7,opt,name=containerResource"`

@@ -453,8 +450,6 @@ type HorizontalPodAutoscalerCondition struct {
type MetricStatus struct {
// type is the type of metric source. It will be one of "ContainerResource", "External",
// "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
// Note: "ContainerResource" type is available on when the feature-gate
// HPAContainerMetrics is enabled
Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"`

// object refers to a metric describing a single kubernetes object
6 changes: 3 additions & 3 deletions autoscaling/v2/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
@@ -185,11 +185,11 @@ func (MetricIdentifier) SwaggerDoc() map[string]string {

var map_MetricSpec = map[string]string{
"": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).",
"type": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled",
"type": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.",
"object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
"pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
"resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"containerResource": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.",
"containerResource": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
}

@@ -199,7 +199,7 @@ func (MetricSpec) SwaggerDoc() map[string]string {

var map_MetricStatus = map[string]string{
"": "MetricStatus describes the last-read state of a single metric.",
"type": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled",
"type": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.",
"object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
"pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
"resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
5 changes: 0 additions & 5 deletions autoscaling/v2beta1/generated.proto
5 changes: 0 additions & 5 deletions autoscaling/v2beta1/types.go
Original file line number Diff line number Diff line change
@@ -96,8 +96,6 @@ const (
type MetricSpec struct {
// type is the type of metric source. It should be one of "ContainerResource",
// "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object.
// Note: "ContainerResource" type is available on when the feature-gate
// HPAContainerMetrics is enabled
Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"`

// object refers to a metric describing a single kubernetes object
@@ -121,7 +119,6 @@ type MetricSpec struct {
// each pod of the current scale target (e.g. CPU or memory). Such metrics are
// built in to Kubernetes, and have special scaling options on top of those
// available to normal per-pod metrics using the "pods" source.
// This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.
// +optional
ContainerResource *ContainerResourceMetricSource `json:"containerResource,omitempty" protobuf:"bytes,7,opt,name=containerResource"`
// external refers to a global metric that is not associated
@@ -311,8 +308,6 @@ type HorizontalPodAutoscalerCondition struct {
type MetricStatus struct {
// type is the type of metric source. It will be one of "ContainerResource",
// "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
// Note: "ContainerResource" type is available on when the feature-gate
// HPAContainerMetrics is enabled
Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"`

// object refers to a metric describing a single kubernetes object
6 changes: 3 additions & 3 deletions autoscaling/v2beta1/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
@@ -148,11 +148,11 @@ func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string {

var map_MetricSpec = map[string]string{
"": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).",
"type": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled",
"type": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.",
"object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
"pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
"resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"containerResource": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.",
"containerResource": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
}

@@ -162,7 +162,7 @@ func (MetricSpec) SwaggerDoc() map[string]string {

var map_MetricStatus = map[string]string{
"": "MetricStatus describes the last-read state of a single metric.",
"type": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled",
"type": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.",
"object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
"pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
"resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
5 changes: 0 additions & 5 deletions autoscaling/v2beta2/generated.proto
5 changes: 0 additions & 5 deletions autoscaling/v2beta2/types.go
Original file line number Diff line number Diff line change
@@ -104,8 +104,6 @@ type CrossVersionObjectReference struct {
type MetricSpec struct {
// type is the type of metric source. It should be one of "ContainerResource", "External",
// "Object", "Pods" or "Resource", each mapping to a matching field in the object.
// Note: "ContainerResource" type is available on when the feature-gate
// HPAContainerMetrics is enabled
Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"`

// object refers to a metric describing a single kubernetes object
@@ -132,7 +130,6 @@ type MetricSpec struct {
// each pod of the current scale target (e.g. CPU or memory). Such metrics are
// built in to Kubernetes, and have special scaling options on top of those
// available to normal per-pod metrics using the "pods" source.
// This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.
// +optional
ContainerResource *ContainerResourceMetricSource `json:"containerResource,omitempty" protobuf:"bytes,7,opt,name=containerResource"`

@@ -449,8 +446,6 @@ type HorizontalPodAutoscalerCondition struct {
type MetricStatus struct {
// type is the type of metric source. It will be one of "ContainerResource", "External",
// "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
// Note: "ContainerResource" type is available on when the feature-gate
// HPAContainerMetrics is enabled
Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"`

// object refers to a metric describing a single kubernetes object
6 changes: 3 additions & 3 deletions autoscaling/v2beta2/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
@@ -185,11 +185,11 @@ func (MetricIdentifier) SwaggerDoc() map[string]string {

var map_MetricSpec = map[string]string{
"": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).",
"type": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled",
"type": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.",
"object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
"pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
"resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"containerResource": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.",
"containerResource": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
}

@@ -199,7 +199,7 @@ func (MetricSpec) SwaggerDoc() map[string]string {

var map_MetricStatus = map[string]string{
"": "MetricStatus describes the last-read state of a single metric.",
"type": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled",
"type": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.",
"object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
"pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
"resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
4 changes: 2 additions & 2 deletions batch/v1/generated.proto
5 changes: 2 additions & 3 deletions batch/v1/types.go
Original file line number Diff line number Diff line change
@@ -29,7 +29,6 @@ const (

// CronJobScheduledTimestampAnnotation is the scheduled timestamp annotation for the Job.
// It records the original/expected scheduled timestamp for the running job, represented in RFC3339.
// The CronJob controller adds this annotation if the CronJobsScheduledAnnotation feature gate (beta in 1.28) is enabled.
CronJobScheduledTimestampAnnotation = labelPrefix + "cronjob-scheduled-timestamp"

JobCompletionIndexAnnotation = labelPrefix + "job-completion-index"
@@ -480,8 +479,8 @@ type JobSpec struct {
// characters as defined by RFC 3986. The value cannot exceed 63 characters.
// This field is immutable.
//
// This field is alpha-level. The job controller accepts setting the field
// when the feature gate JobManagedBy is enabled (disabled by default).
// This field is beta-level. The job controller accepts setting the field
// when the feature gate JobManagedBy is enabled (enabled by default).
// +optional
ManagedBy *string `json:"managedBy,omitempty" protobuf:"bytes,15,opt,name=managedBy"`
}
2 changes: 1 addition & 1 deletion batch/v1/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
@@ -127,7 +127,7 @@ var map_JobSpec = map[string]string{
"completionMode": "completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.",
"suspend": "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.",
"podReplacementPolicy": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.",
"managedBy": "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.\n\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).",
"managedBy": "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.\n\nThis field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).",
}

func (JobSpec) SwaggerDoc() map[string]string {
2 changes: 2 additions & 0 deletions certificates/v1alpha1/types.go
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@ import (
// +genclient
// +genclient:nonNamespaced
// +k8s:prerelease-lifecycle-gen:introduced=1.26
// +k8s:prerelease-lifecycle-gen:deprecated=1.34
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors
@@ -90,6 +91,7 @@ type ClusterTrustBundleSpec struct {
}

// +k8s:prerelease-lifecycle-gen:introduced=1.26
// +k8s:prerelease-lifecycle-gen:deprecated=1.34
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// ClusterTrustBundleList is a collection of ClusterTrustBundle objects
8 changes: 4 additions & 4 deletions certificates/v1alpha1/zz_generated.prerelease-lifecycle.go
64 changes: 0 additions & 64 deletions coordination/v1alpha1/types_swagger_doc_generated.go

This file was deleted.

Original file line number Diff line number Diff line change
@@ -21,4 +21,4 @@ limitations under the License.

// +groupName=coordination.k8s.io

package v1alpha1 // import "k8s.io/api/coordination/v1alpha1"
package v1alpha2 // import "k8s.io/api/coordination/v1alpha2"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 The Kubernetes Authors.
Copyright 2024 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1
package v1alpha2

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -26,7 +26,7 @@ import (
const GroupName = "coordination.k8s.io"

// SchemeGroupVersion is group version used to register these objects
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha2"}

// Resource takes an unqualified resource and returns a Group qualified GroupResource
func Resource(resource string) schema.GroupResource {
29 changes: 12 additions & 17 deletions coordination/v1alpha1/types.go → coordination/v1alpha2/types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2018 The Kubernetes Authors.
Copyright 2024 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1
package v1alpha2

import (
v1 "k8s.io/api/coordination/v1"
@@ -23,7 +23,7 @@ import (

// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:prerelease-lifecycle-gen:introduced=1.31
// +k8s:prerelease-lifecycle-gen:introduced=1.32

// LeaseCandidate defines a candidate for a Lease object.
// Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
@@ -61,31 +61,26 @@ type LeaseCandidateSpec struct {
// +optional
RenewTime *metav1.MicroTime `json:"renewTime,omitempty" protobuf:"bytes,3,opt,name=renewTime"`
// BinaryVersion is the binary version. It must be in a semver format without leading `v`.
// This field is required when strategy is "OldestEmulationVersion"
// +optional
BinaryVersion string `json:"binaryVersion,omitempty" protobuf:"bytes,4,opt,name=binaryVersion"`
// This field is required.
// +required
BinaryVersion string `json:"binaryVersion" protobuf:"bytes,4,name=binaryVersion"`
// EmulationVersion is the emulation version. It must be in a semver format without leading `v`.
// EmulationVersion must be less than or equal to BinaryVersion.
// This field is required when strategy is "OldestEmulationVersion"
// +optional
EmulationVersion string `json:"emulationVersion,omitempty" protobuf:"bytes,5,opt,name=emulationVersion"`
// PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election.
// The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated
// leader election to make a decision about the final election strategy. This follows as
// - If all clients have strategy X as the first element in this list, strategy X will be used.
// - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y
// will be used.
// - If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader
// election will not operate the Lease until resolved.
// Strategy is the strategy that coordinated leader election will use for picking the leader.
// If multiple candidates for the same Lease return different strategies, the strategy provided
// by the candidate with the latest BinaryVersion will be used. If there is still conflict,
// this is a user error and coordinated leader election will not operate the Lease until resolved.
// (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
// +featureGate=CoordinatedLeaderElection
// +listType=atomic
// +required
PreferredStrategies []v1.CoordinatedLeaseStrategy `json:"preferredStrategies,omitempty" protobuf:"bytes,6,opt,name=preferredStrategies"`
Strategy v1.CoordinatedLeaseStrategy `json:"strategy,omitempty" protobuf:"bytes,6,opt,name=strategy"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:prerelease-lifecycle-gen:introduced=1.31
// +k8s:prerelease-lifecycle-gen:introduced=1.32

// LeaseCandidateList is a list of Lease objects.
type LeaseCandidateList struct {
64 changes: 64 additions & 0 deletions coordination/v1alpha2/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
Copyright The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha2

// This file contains a collection of methods that can be used from go-restful to
// generate Swagger API documentation for its models. Please read this PR for more
// information on the implementation: https://github.com/emicklei/go-restful/pull/215
//
// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
// they are on one line! For multiple line or blocks that you want to ignore use ---.
// Any context after a --- is ignored.
//
// Those methods can be generated by using hack/update-codegen.sh

// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
var map_LeaseCandidate = map[string]string{
"": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.",
"metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"spec": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
}

func (LeaseCandidate) SwaggerDoc() map[string]string {
return map_LeaseCandidate
}

var map_LeaseCandidateList = map[string]string{
"": "LeaseCandidateList is a list of Lease objects.",
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"items": "items is a list of schema objects.",
}

func (LeaseCandidateList) SwaggerDoc() map[string]string {
return map_LeaseCandidateList
}

var map_LeaseCandidateSpec = map[string]string{
"": "LeaseCandidateSpec is a specification of a Lease.",
"leaseName": "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.",
"pingTime": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.",
"renewTime": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.",
"binaryVersion": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.",
"emulationVersion": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"",
"strategy": "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.",
}

func (LeaseCandidateSpec) SwaggerDoc() map[string]string {
return map_LeaseCandidateSpec
}

// AUTO-GENERATED FUNCTIONS END HERE
4 changes: 2 additions & 2 deletions core/v1/annotation_key_constants.go
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ const (
// webhook backend fails.
ImagePolicyFailedOpenKey string = "alpha.image-policy.k8s.io/failed-open"

// MirrorAnnotationKey represents the annotation key set by kubelets when creating mirror pods
// MirrorPodAnnotationKey represents the annotation key set by kubelets when creating mirror pods
MirrorPodAnnotationKey string = "kubernetes.io/config.mirror"

// TolerationsAnnotationKey represents the key of tolerations data (json serialized)
@@ -80,7 +80,7 @@ const (
// This annotation can be attached to node.
ObjectTTLAnnotationKey string = "node.alpha.kubernetes.io/ttl"

// annotation key prefix used to identify non-convertible json paths.
// NonConvertibleAnnotationPrefix is the annotation key prefix used to identify non-convertible json paths.
NonConvertibleAnnotationPrefix = "non-convertible.kubernetes.io"

kubectlPrefix = "kubectl.kubernetes.io/"
Loading