mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-25 14:41:53 +00:00
generated
Kubernetes-commit: e9d9b05234b46d2419112adb2009a9802998027c
This commit is contained in:
parent
38cb1a951d
commit
62a5cd0975
@ -65,6 +65,7 @@ type Initializer struct {
|
|||||||
|
|
||||||
// Rules describes what resources/subresources the initializer cares about.
|
// Rules describes what resources/subresources the initializer cares about.
|
||||||
// The initializer cares about an operation if it matches _any_ Rule.
|
// The initializer cares about an operation if it matches _any_ Rule.
|
||||||
|
// Rule.Resources must not include subresources.
|
||||||
Rules []Rule
|
Rules []Rule
|
||||||
|
|
||||||
// FailurePolicy defines what happens if the responsible initializer controller
|
// FailurePolicy defines what happens if the responsible initializer controller
|
||||||
@ -98,7 +99,10 @@ type Rule struct {
|
|||||||
// '*/scale' means all scale subresources.
|
// '*/scale' means all scale subresources.
|
||||||
// '*/*' means all resources and their subresources.
|
// '*/*' means all resources and their subresources.
|
||||||
//
|
//
|
||||||
// If '*' or '*/*' is present, the length of the slice must be one.
|
// If wildcard is present, the validation rule will ensure resources do not
|
||||||
|
// overlap with each other.
|
||||||
|
//
|
||||||
|
// Depending on the enclosing object, subresources might not be allowed.
|
||||||
// Required.
|
// Required.
|
||||||
Resources []string
|
Resources []string
|
||||||
}
|
}
|
||||||
|
@ -105,6 +105,7 @@ message Initializer {
|
|||||||
|
|
||||||
// Rules describes what resources/subresources the initializer cares about.
|
// Rules describes what resources/subresources the initializer cares about.
|
||||||
// The initializer cares about an operation if it matches _any_ Rule.
|
// The initializer cares about an operation if it matches _any_ Rule.
|
||||||
|
// Rule.Resources must not include subresources.
|
||||||
repeated Rule rules = 2;
|
repeated Rule rules = 2;
|
||||||
|
|
||||||
// FailurePolicy defines what happens if the responsible initializer controller
|
// FailurePolicy defines what happens if the responsible initializer controller
|
||||||
@ -167,7 +168,10 @@ message Rule {
|
|||||||
// '*/scale' means all scale subresources.
|
// '*/scale' means all scale subresources.
|
||||||
// '*/*' means all resources and their subresources.
|
// '*/*' means all resources and their subresources.
|
||||||
//
|
//
|
||||||
// If '*' or '*/*' is present, the length of the slice must be one.
|
// If wildcard is present, the validation rule will ensure resources do not
|
||||||
|
// overlap with each other.
|
||||||
|
//
|
||||||
|
// Depending on the enclosing object, subresources might not be allowed.
|
||||||
// Required.
|
// Required.
|
||||||
repeated string resources = 3;
|
repeated string resources = 3;
|
||||||
}
|
}
|
||||||
|
@ -67,6 +67,7 @@ type Initializer struct {
|
|||||||
|
|
||||||
// Rules describes what resources/subresources the initializer cares about.
|
// Rules describes what resources/subresources the initializer cares about.
|
||||||
// The initializer cares about an operation if it matches _any_ Rule.
|
// The initializer cares about an operation if it matches _any_ Rule.
|
||||||
|
// Rule.Resources must not include subresources.
|
||||||
Rules []Rule `json:"rules,omitempty" protobuf:"bytes,2,rep,name=rules"`
|
Rules []Rule `json:"rules,omitempty" protobuf:"bytes,2,rep,name=rules"`
|
||||||
|
|
||||||
// FailurePolicy defines what happens if the responsible initializer controller
|
// FailurePolicy defines what happens if the responsible initializer controller
|
||||||
@ -100,7 +101,10 @@ type Rule struct {
|
|||||||
// '*/scale' means all scale subresources.
|
// '*/scale' means all scale subresources.
|
||||||
// '*/*' means all resources and their subresources.
|
// '*/*' means all resources and their subresources.
|
||||||
//
|
//
|
||||||
// If '*' or '*/*' is present, the length of the slice must be one.
|
// If wildcard is present, the validation rule will ensure resources do not
|
||||||
|
// overlap with each other.
|
||||||
|
//
|
||||||
|
// Depending on the enclosing object, subresources might not be allowed.
|
||||||
// Required.
|
// Required.
|
||||||
Resources []string `json:"resources,omitempty" protobuf:"bytes,3,rep,name=resources"`
|
Resources []string `json:"resources,omitempty" protobuf:"bytes,3,rep,name=resources"`
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ func (ExternalAdmissionHookConfigurationList) SwaggerDoc() map[string]string {
|
|||||||
var map_Initializer = map[string]string{
|
var map_Initializer = map[string]string{
|
||||||
"": "Initializer describes the name and the failure policy of an initializer, and what resources it applies to.",
|
"": "Initializer describes the name and the failure policy of an initializer, and what resources it applies to.",
|
||||||
"name": "Name is the identifier of the initializer. It will be added to the object that needs to be initialized. Name should be fully qualified, e.g., alwayspullimages.kubernetes.io, where \"alwayspullimages\" is the name of the webhook, and kubernetes.io is the name of the organization. Required",
|
"name": "Name is the identifier of the initializer. It will be added to the object that needs to be initialized. Name should be fully qualified, e.g., alwayspullimages.kubernetes.io, where \"alwayspullimages\" is the name of the webhook, and kubernetes.io is the name of the organization. Required",
|
||||||
"rules": "Rules describes what resources/subresources the initializer cares about. The initializer cares about an operation if it matches _any_ Rule.",
|
"rules": "Rules describes what resources/subresources the initializer cares about. The initializer cares about an operation if it matches _any_ Rule. Rule.Resources must not include subresources.",
|
||||||
"failurePolicy": "FailurePolicy defines what happens if the responsible initializer controller fails to takes action. Allowed values are Ignore, or Fail. If \"Ignore\" is set, initializer is removed from the initializers list of an object if the timeout is reached; If \"Fail\" is set, admissionregistration returns timeout error if the timeout is reached.",
|
"failurePolicy": "FailurePolicy defines what happens if the responsible initializer controller fails to takes action. Allowed values are Ignore, or Fail. If \"Ignore\" is set, initializer is removed from the initializers list of an object if the timeout is reached; If \"Fail\" is set, admissionregistration returns timeout error if the timeout is reached.",
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ var map_Rule = map[string]string{
|
|||||||
"": "Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended to make sure that all the tuple expansions are valid.",
|
"": "Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended to make sure that all the tuple expansions are valid.",
|
||||||
"apiGroups": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.",
|
"apiGroups": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.",
|
||||||
"apiVersions": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.",
|
"apiVersions": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.",
|
||||||
"resources": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf '*' or '*/*' is present, the length of the slice must be one. Required.",
|
"resources": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Rule) SwaggerDoc() map[string]string {
|
func (Rule) SwaggerDoc() map[string]string {
|
||||||
|
Loading…
Reference in New Issue
Block a user