11// This file is @generated by prost-build.
22/// AuditAnnotation describes how to produce an audit annotation for an API request.
3- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
3+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
44pub struct AuditAnnotation {
55 /// key specifies the audit annotation key. The audit annotation keys of
66 /// a ValidatingAdmissionPolicy must be unique. The key must be a qualified
@@ -38,7 +38,7 @@ pub struct AuditAnnotation {
3838 pub value_expression : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
3939}
4040/// ExpressionWarning is a warning information that targets a specific expression.
41- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
41+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
4242pub struct ExpressionWarning {
4343 /// The path to the field that refers the expression.
4444 /// For example, the reference to the expression of the first item of
@@ -52,7 +52,7 @@ pub struct ExpressionWarning {
5252 pub warning : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
5353}
5454/// MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.
55- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
55+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
5656pub struct MatchCondition {
5757 /// Name is an identifier for this match condition, used for strategic merging of MatchConditions,
5858 /// as well as providing an identifier for logging purposes. A good name should be descriptive of
@@ -380,7 +380,7 @@ pub struct MutatingWebhookConfigurationList {
380380}
381381/// NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
382382/// +structType=atomic
383- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
383+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
384384pub struct NamedRuleWithOperations {
385385 /// ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
386386 /// +listType=atomic
@@ -393,7 +393,7 @@ pub struct NamedRuleWithOperations {
393393}
394394/// ParamKind is a tuple of Group Kind and Version.
395395/// +structType=atomic
396- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
396+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
397397pub struct ParamKind {
398398 /// APIVersion is the API group version the resources belong to.
399399 /// In format of "group/version".
@@ -466,7 +466,7 @@ pub struct ParamRef {
466466}
467467/// Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended
468468/// to make sure that all the tuple expansions are valid.
469- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
469+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
470470pub struct Rule {
471471 /// APIGroups is the API groups the resources belong to. '*' is all groups.
472472 /// If '*' is present, the length of the slice must be one.
@@ -513,7 +513,7 @@ pub struct Rule {
513513}
514514/// RuleWithOperations is a tuple of Operations and Resources. It is recommended to make
515515/// sure that all the tuple expansions are valid.
516- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
516+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
517517pub struct RuleWithOperations {
518518 /// Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
519519 /// for all of those operations and any future admission operations that are added.
@@ -528,7 +528,7 @@ pub struct RuleWithOperations {
528528 pub rule : :: core:: option:: Option < Rule > ,
529529}
530530/// ServiceReference holds a reference to Service.legacy.k8s.io
531- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
531+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
532532pub struct ServiceReference {
533533 /// `namespace` is the namespace of the service.
534534 /// Required
@@ -976,7 +976,7 @@ pub struct ValidatingWebhookConfigurationList {
976976 pub items : :: prost:: alloc:: vec:: Vec < ValidatingWebhookConfiguration > ,
977977}
978978/// Validation specifies the CEL expression which is used to apply the validation.
979- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
979+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
980980pub struct Validation {
981981 /// Expression represents the expression which will be evaluated by CEL.
982982 /// ref: <https://github.com/google/cel-spec>
@@ -1056,7 +1056,7 @@ pub struct Validation {
10561056}
10571057/// Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
10581058/// +structType=atomic
1059- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1059+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
10601060pub struct Variable {
10611061 /// Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
10621062 /// The variable can be accessed in other expressions through `variables`
@@ -1070,7 +1070,7 @@ pub struct Variable {
10701070}
10711071/// WebhookClientConfig contains the information to make a TLS
10721072/// connection with the webhook
1073- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1073+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
10741074pub struct WebhookClientConfig {
10751075 /// `url` gives the location of the webhook, in standard URL form
10761076 /// (`scheme://host:port/path`). Exactly one of `url` or `service`
0 commit comments