mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Merge pull request #125540 from pohly/revert-binding-deprecation
api: revert deprecation annotation for v1 Binding
This commit is contained in:
commit
a3a49887ee
@ -6370,7 +6370,6 @@ type NamespaceList struct {
|
|||||||
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
// +k8s:prerelease-lifecycle-gen:introduced=1.0
|
// +k8s:prerelease-lifecycle-gen:introduced=1.0
|
||||||
// +k8s:prerelease-lifecycle-gen:deprecated=1.6
|
|
||||||
|
|
||||||
// Binding ties one object to another; for example, a pod is bound to a node by a scheduler.
|
// Binding ties one object to another; for example, a pod is bound to a node by a scheduler.
|
||||||
// Deprecated in 1.7, please use the bindings subresource of pods instead.
|
// Deprecated in 1.7, please use the bindings subresource of pods instead.
|
||||||
|
@ -58,3 +58,12 @@ func TestEphemeralContainer(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestNoBindingDeprecation(t *testing.T) {
|
||||||
|
var binding any = new(Binding)
|
||||||
|
if _, ok := binding.(interface {
|
||||||
|
APILifecycleDeprecated(major, minor int)
|
||||||
|
}); ok {
|
||||||
|
t.Fatal("The Binding type must not marked as deprecated, it is still used for the binding sub-resource which is not deprecated.")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -27,12 +27,6 @@ func (in *Binding) APILifecycleIntroduced() (major, minor int) {
|
|||||||
return 1, 0
|
return 1, 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison.
|
|
||||||
// It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
|
|
||||||
func (in *Binding) APILifecycleDeprecated() (major, minor int) {
|
|
||||||
return 1, 6
|
|
||||||
}
|
|
||||||
|
|
||||||
// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison.
|
// APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison.
|
||||||
// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
|
// It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
|
||||||
func (in *ConfigMap) APILifecycleIntroduced() (major, minor int) {
|
func (in *ConfigMap) APILifecycleIntroduced() (major, minor int) {
|
||||||
|
Loading…
Reference in New Issue
Block a user