summaryrefslogtreecommitdiff
path: root/pkg/k8s.io/apimachinery
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-03-14 17:09:08 +0100
committerPaul Holzinger <pholzing@redhat.com>2022-03-15 14:48:11 +0100
commit0612f859b84ea1d32ec58f124926da5ca1b13ebb (patch)
treeeac6eabe7977bbf913afc8707a5b07821649c8c0 /pkg/k8s.io/apimachinery
parentf8577766d01e994cfb62b7bf7da14631c1a183b5 (diff)
downloadpodman-0612f859b84ea1d32ec58f124926da5ca1b13ebb.tar.gz
podman-0612f859b84ea1d32ec58f124926da5ca1b13ebb.tar.bz2
podman-0612f859b84ea1d32ec58f124926da5ca1b13ebb.zip
pkg/k8s.io/...: remove protobuf field tags
Since we do not use protobuf we can remove these field tags. This will save some KB in the final binary size. This change was automated with the following commands: find pkg/k8s.io/ -type f -name "*.go" -exec sed -i -e 's/\sprotobuf\:\".*\"//g' {} + find pkg/k8s.io/ -type f -name "*.go" -exec sed -i -e 's/\s`protobuf\:\".*\"`//g' {} + Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg/k8s.io/apimachinery')
-rw-r--r--pkg/k8s.io/apimachinery/pkg/apis/meta/v1/duration.go2
-rw-r--r--pkg/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go2
-rw-r--r--pkg/k8s.io/apimachinery/pkg/apis/meta/v1/time.go2
-rw-r--r--pkg/k8s.io/apimachinery/pkg/apis/meta/v1/types.go238
-rw-r--r--pkg/k8s.io/apimachinery/pkg/util/intstr/intstr.go6
5 files changed, 125 insertions, 125 deletions
diff --git a/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/duration.go b/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/duration.go
index 9ea9397e8..f95ba6eac 100644
--- a/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/duration.go
+++ b/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/duration.go
@@ -25,7 +25,7 @@ import (
// marshaling to YAML and JSON. In particular, it marshals into strings, which
// can be used as map keys in json.
type Duration struct {
- time.Duration `protobuf:"varint,1,opt,name=duration,casttype=time.Duration"`
+ time.Duration
}
// UnmarshalJSON implements the json.Unmarshaller interface.
diff --git a/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go b/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
index 1da7d54a0..a6dbd7cbd 100644
--- a/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
+++ b/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
@@ -29,7 +29,7 @@ const RFC3339Micro = "2006-01-02T15:04:05.000000Z07:00"
// +protobuf.as=Timestamp
// +protobuf.options.(gogoproto.goproto_stringer)=false
type MicroTime struct {
- time.Time `protobuf:"-"`
+ time.Time
}
// DeepCopy returns a deep-copy of the MicroTime value. The underlying time.Time
diff --git a/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/time.go b/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
index b84531b1a..bdc55ab34 100644
--- a/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
+++ b/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
@@ -29,7 +29,7 @@ import (
// +protobuf.as=Timestamp
// +protobuf.options.(gogoproto.goproto_stringer)=false
type Time struct {
- time.Time `protobuf:"-"`
+ time.Time
}
// DeepCopyInto creates a deep-copy of the Time value. The underlying time.Time
diff --git a/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/types.go b/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/types.go
index 7f0a5cb21..697817774 100644
--- a/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/types.go
+++ b/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/types.go
@@ -44,14 +44,14 @@ type TypeMeta struct {
// In CamelCase.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
// +optional
- Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"`
+ Kind string `json:"kind,omitempty"`
// APIVersion defines the versioned schema of this representation of an object.
// Servers should convert recognized schemas to the latest internal value, and
// may reject unrecognized values.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
// +optional
- APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=apiVersion"`
+ APIVersion string `json:"apiVersion,omitempty"`
}
// ListMeta describes metadata that synthetic resources must have, including lists and
@@ -65,7 +65,7 @@ type ListMeta struct {
// Kubernetes will stop propagating this field in 1.20 release and the field is planned
// to be removed in 1.21 release.
// +optional
- SelfLink string `json:"selfLink,omitempty" protobuf:"bytes,1,opt,name=selfLink"`
+ SelfLink string `json:"selfLink,omitempty"`
// String that identifies the server's internal version of this object that
// can be used by clients to determine when objects have changed.
@@ -74,7 +74,7 @@ type ListMeta struct {
// Read-only.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
// +optional
- ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,2,opt,name=resourceVersion"`
+ ResourceVersion string `json:"resourceVersion,omitempty"`
// continue may be set if the user set a limit on the number of items returned, and indicates that
// the server has more data available. The value is opaque and may be used to issue another request
@@ -83,7 +83,7 @@ type ListMeta struct {
// minutes have passed. The resourceVersion field returned when using this continue value will be
// identical to the value in the first response, unless you have received this token from an error
// message.
- Continue string `json:"continue,omitempty" protobuf:"bytes,3,opt,name=continue"`
+ Continue string `json:"continue,omitempty"`
// remainingItemCount is the number of subsequent items in the list which are not included in this
// list response. If the list request contained label or field selectors, then the number of
@@ -95,7 +95,7 @@ type ListMeta struct {
// The intended use of the remainingItemCount is *estimating* the size of a collection. Clients
// should not rely on the remainingItemCount to be set or to be exact.
// +optional
- RemainingItemCount *int64 `json:"remainingItemCount,omitempty" protobuf:"bytes,4,opt,name=remainingItemCount"`
+ RemainingItemCount *int64 `json:"remainingItemCount,omitempty"`
}
// Field path constants that are specific to the internal API
@@ -120,7 +120,7 @@ type ObjectMeta struct {
// Cannot be updated.
// More info: http://kubernetes.io/docs/user-guide/identifiers#names
// +optional
- Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
+ Name string `json:"name,omitempty"`
// GenerateName is an optional prefix, used by the server, to generate a unique
// name ONLY IF the Name field has not been provided.
@@ -138,7 +138,7 @@ type ObjectMeta struct {
// Applied only if Name is not specified.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
// +optional
- GenerateName string `json:"generateName,omitempty" protobuf:"bytes,2,opt,name=generateName"`
+ GenerateName string `json:"generateName,omitempty"`
// Namespace defines the space within which each name must be unique. An empty namespace is
// equivalent to the "default" namespace, but "default" is the canonical representation.
@@ -149,7 +149,7 @@ type ObjectMeta struct {
// Cannot be updated.
// More info: http://kubernetes.io/docs/user-guide/namespaces
// +optional
- Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"`
+ Namespace string `json:"namespace,omitempty"`
// SelfLink is a URL representing this object.
// Populated by the system.
@@ -159,7 +159,7 @@ type ObjectMeta struct {
// Kubernetes will stop propagating this field in 1.20 release and the field is planned
// to be removed in 1.21 release.
// +optional
- SelfLink string `json:"selfLink,omitempty" protobuf:"bytes,4,opt,name=selfLink"`
+ SelfLink string `json:"selfLink,omitempty"`
// UID is the unique in time and space value for this object. It is typically generated by
// the server on successful creation of a resource and is not allowed to change on PUT
@@ -169,7 +169,7 @@ type ObjectMeta struct {
// Read-only.
// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
// +optional
- UID types.UID `json:"uid,omitempty" protobuf:"bytes,5,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"`
+ UID types.UID `json:"uid,omitempty"`
// An opaque value that represents the internal version of this object that can
// be used by clients to determine when objects have changed. May be used for optimistic
@@ -182,12 +182,12 @@ type ObjectMeta struct {
// Value must be treated as opaque by clients and .
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
// +optional
- ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,6,opt,name=resourceVersion"`
+ ResourceVersion string `json:"resourceVersion,omitempty"`
// A sequence number representing a specific generation of the desired state.
// Populated by the system. Read-only.
// +optional
- Generation int64 `json:"generation,omitempty" protobuf:"varint,7,opt,name=generation"`
+ Generation int64 `json:"generation,omitempty"`
// CreationTimestamp is a timestamp representing the server time when this object was
// created. It is not guaranteed to be set in happens-before order across separate operations.
@@ -198,7 +198,7 @@ type ObjectMeta struct {
// Null for lists.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
- CreationTimestamp Time `json:"creationTimestamp,omitempty" protobuf:"bytes,8,opt,name=creationTimestamp"`
+ CreationTimestamp Time `json:"creationTimestamp,omitempty"`
// DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
// field is set by the server when a graceful deletion is requested by the user, and is not
@@ -219,28 +219,28 @@ type ObjectMeta struct {
// Read-only.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
- DeletionTimestamp *Time `json:"deletionTimestamp,omitempty" protobuf:"bytes,9,opt,name=deletionTimestamp"`
+ DeletionTimestamp *Time `json:"deletionTimestamp,omitempty"`
// Number of seconds allowed for this object to gracefully terminate before
// it will be removed from the system. Only set when deletionTimestamp is also set.
// May only be shortened.
// Read-only.
// +optional
- DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty" protobuf:"varint,10,opt,name=deletionGracePeriodSeconds"`
+ DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty"`
// Map of string keys and values that can be used to organize and categorize
// (scope and select) objects. May match selectors of replication controllers
// and services.
// More info: http://kubernetes.io/docs/user-guide/labels
// +optional
- Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,11,rep,name=labels"`
+ Labels map[string]string `json:"labels,omitempty"`
// Annotations is an unstructured key value map stored with a resource that may be
// set by external tools to store and retrieve arbitrary metadata. They are not
// queryable and should be preserved when modifying objects.
// More info: http://kubernetes.io/docs/user-guide/annotations
// +optional
- Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,12,rep,name=annotations"`
+ Annotations map[string]string `json:"annotations,omitempty"`
// List of objects depended by this object. If ALL objects in the list have
// been deleted, this object will be garbage collected. If this object is managed by a controller,
@@ -249,7 +249,7 @@ type ObjectMeta struct {
// +optional
// +patchMergeKey=uid
// +patchStrategy=merge
- OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" patchStrategy:"merge" patchMergeKey:"uid" protobuf:"bytes,13,rep,name=ownerReferences"`
+ OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" patchStrategy:"merge" patchMergeKey:"uid"`
// Must be empty before the object is deleted from the registry. Each entry
// is an identifier for the responsible component that will remove the entry
@@ -266,13 +266,13 @@ type ObjectMeta struct {
// are not vulnerable to ordering changes in the list.
// +optional
// +patchStrategy=merge
- Finalizers []string `json:"finalizers,omitempty" patchStrategy:"merge" protobuf:"bytes,14,rep,name=finalizers"`
+ Finalizers []string `json:"finalizers,omitempty" patchStrategy:"merge"`
// The name of the cluster which the object belongs to.
// This is used to distinguish resources with same name and namespace in different clusters.
// This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.
// +optional
- ClusterName string `json:"clusterName,omitempty" protobuf:"bytes,15,opt,name=clusterName"`
+ ClusterName string `json:"clusterName,omitempty"`
// ManagedFields maps workflow-id and version to the set of fields
// that are managed by that workflow. This is mostly for internal
@@ -283,7 +283,7 @@ type ObjectMeta struct {
// workflow used when modifying the object.
//
// +optional
- ManagedFields []ManagedFieldsEntry `json:"managedFields,omitempty" protobuf:"bytes,17,rep,name=managedFields"`
+ ManagedFields []ManagedFieldsEntry `json:"managedFields,omitempty"`
}
const (
@@ -305,19 +305,19 @@ const (
// +structType=atomic
type OwnerReference struct {
// API version of the referent.
- APIVersion string `json:"apiVersion" protobuf:"bytes,5,opt,name=apiVersion"`
+ APIVersion string `json:"apiVersion"`
// Kind of the referent.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"`
+ Kind string `json:"kind"`
// Name of the referent.
// More info: http://kubernetes.io/docs/user-guide/identifiers#names
- Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
+ Name string `json:"name"`
// UID of the referent.
// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
- UID types.UID `json:"uid" protobuf:"bytes,4,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
+ UID types.UID `json:"uid"`
// If true, this reference points to the managing controller.
// +optional
- Controller *bool `json:"controller,omitempty" protobuf:"varint,6,opt,name=controller"`
+ Controller *bool `json:"controller,omitempty"`
// If true, AND if the owner has the "foregroundDeletion" finalizer, then
// the owner cannot be deleted from the key-value store until this
// reference is removed.
@@ -325,7 +325,7 @@ type OwnerReference struct {
// To set this field, a user needs "delete" permission of the owner,
// otherwise 422 (Unprocessable Entity) will be returned.
// +optional
- BlockOwnerDeletion *bool `json:"blockOwnerDeletion,omitempty" protobuf:"varint,7,opt,name=blockOwnerDeletion"`
+ BlockOwnerDeletion *bool `json:"blockOwnerDeletion,omitempty"`
}
// +k8s:conversion-gen:explicit-from=net/url.Values
@@ -338,18 +338,18 @@ type ListOptions struct {
// A selector to restrict the list of returned objects by their labels.
// Defaults to everything.
// +optional
- LabelSelector string `json:"labelSelector,omitempty" protobuf:"bytes,1,opt,name=labelSelector"`
+ LabelSelector string `json:"labelSelector,omitempty"`
// A selector to restrict the list of returned objects by their fields.
// Defaults to everything.
// +optional
- FieldSelector string `json:"fieldSelector,omitempty" protobuf:"bytes,2,opt,name=fieldSelector"`
+ FieldSelector string `json:"fieldSelector,omitempty"`
// +k8s:deprecated=includeUninitialized,protobuf=6
// Watch for changes to the described resources and return them as a stream of
// add, update, and remove notifications. Specify resourceVersion.
// +optional
- Watch bool `json:"watch,omitempty" protobuf:"varint,3,opt,name=watch"`
+ Watch bool `json:"watch,omitempty"`
// allowWatchBookmarks requests watch events with type "BOOKMARK".
// Servers that do not implement bookmarks may ignore this flag and
// bookmarks are sent at the server's discretion. Clients should not
@@ -357,7 +357,7 @@ type ListOptions struct {
// assume the server will send any BOOKMARK event during a session.
// If this is not a watch, this field is ignored.
// +optional
- AllowWatchBookmarks bool `json:"allowWatchBookmarks,omitempty" protobuf:"varint,9,opt,name=allowWatchBookmarks"`
+ AllowWatchBookmarks bool `json:"allowWatchBookmarks,omitempty"`
// resourceVersion sets a constraint on what resource versions a request may be served from.
// See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
@@ -365,7 +365,7 @@ type ListOptions struct {
//
// Defaults to unset
// +optional
- ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,4,opt,name=resourceVersion"`
+ ResourceVersion string `json:"resourceVersion,omitempty"`
// resourceVersionMatch determines how resourceVersion is applied to list calls.
// It is highly recommended that resourceVersionMatch be set for list calls where
@@ -375,11 +375,11 @@ type ListOptions struct {
//
// Defaults to unset
// +optional
- ResourceVersionMatch ResourceVersionMatch `json:"resourceVersionMatch,omitempty" protobuf:"bytes,10,opt,name=resourceVersionMatch,casttype=ResourceVersionMatch"`
+ ResourceVersionMatch ResourceVersionMatch `json:"resourceVersionMatch,omitempty"`
// Timeout for the list/watch call.
// This limits the duration of the call, regardless of any activity or inactivity.
// +optional
- TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty" protobuf:"varint,5,opt,name=timeoutSeconds"`
+ TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"`
// limit is a maximum number of responses to return for a list call. If more items exist, the
// server will set the `continue` field on the list metadata to a value that can be used with the
@@ -397,7 +397,7 @@ type ListOptions struct {
// smaller chunks of a very large result can ensure they see all possible objects. If objects are
// updated during a chunked list the version of the object that was present at the time the first list
// result was calculated is returned.
- Limit int64 `json:"limit,omitempty" protobuf:"varint,7,opt,name=limit"`
+ Limit int64 `json:"limit,omitempty"`
// The continue option should be set when retrieving more results from the server. Since this value is
// server defined, clients may only use the continue value from a previous query result with identical
// query parameters (except for the value of continue) and the server may reject a continue value it
@@ -412,7 +412,7 @@ type ListOptions struct {
//
// This field is not supported when watch is true. Clients may start a watch from the last
// resourceVersion value returned by the server and not miss any modifications.
- Continue string `json:"continue,omitempty" protobuf:"bytes,8,opt,name=continue"`
+ Continue string `json:"continue,omitempty"`
}
// resourceVersionMatch specifies how the resourceVersion parameter is applied. resourceVersionMatch
@@ -446,7 +446,7 @@ type GetOptions struct {
//
// Defaults to unset
// +optional
- ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,1,opt,name=resourceVersion"`
+ ResourceVersion string `json:"resourceVersion,omitempty"`
// +k8s:deprecated=includeUninitialized,protobuf=2
}
@@ -486,20 +486,20 @@ type DeleteOptions struct {
// specified type will be used.
// Defaults to a per object value if not specified. zero means delete immediately.
// +optional
- GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty" protobuf:"varint,1,opt,name=gracePeriodSeconds"`
+ GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty"`
// Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
// returned.
// +k8s:conversion-gen=false
// +optional
- Preconditions *Preconditions `json:"preconditions,omitempty" protobuf:"bytes,2,opt,name=preconditions"`
+ Preconditions *Preconditions `json:"preconditions,omitempty"`
// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
// Should the dependent objects be orphaned. If true/false, the "orphan"
// finalizer will be added to/removed from the object's finalizers list.
// Either this field or PropagationPolicy may be set, but not both.
// +optional
- OrphanDependents *bool `json:"orphanDependents,omitempty" protobuf:"varint,3,opt,name=orphanDependents"`
+ OrphanDependents *bool `json:"orphanDependents,omitempty"`
// Whether and how garbage collection will be performed.
// Either this field or OrphanDependents may be set, but not both.
@@ -510,7 +510,7 @@ type DeleteOptions struct {
// 'Foreground' - a cascading policy that deletes all dependents in the
// foreground.
// +optional
- PropagationPolicy *DeletionPropagation `json:"propagationPolicy,omitempty" protobuf:"varint,4,opt,name=propagationPolicy"`
+ PropagationPolicy *DeletionPropagation `json:"propagationPolicy,omitempty"`
// When present, indicates that modifications should not be
// persisted. An invalid or unrecognized dryRun directive will
@@ -518,7 +518,7 @@ type DeleteOptions struct {
// request. Valid values are:
// - All: all dry run stages will be processed
// +optional
- DryRun []string `json:"dryRun,omitempty" protobuf:"bytes,5,rep,name=dryRun"`
+ DryRun []string `json:"dryRun,omitempty"`
}
// +k8s:conversion-gen:explicit-from=net/url.Values
@@ -534,7 +534,7 @@ type CreateOptions struct {
// request. Valid values are:
// - All: all dry run stages will be processed
// +optional
- DryRun []string `json:"dryRun,omitempty" protobuf:"bytes,1,rep,name=dryRun"`
+ DryRun []string `json:"dryRun,omitempty"`
// +k8s:deprecated=includeUninitialized,protobuf=2
// fieldManager is a name associated with the actor or entity
@@ -542,7 +542,7 @@ type CreateOptions struct {
// 128 characters long, and only contain printable characters,
// as defined by https://golang.org/pkg/unicode/#IsPrint.
// +optional
- FieldManager string `json:"fieldManager,omitempty" protobuf:"bytes,3,name=fieldManager"`
+ FieldManager string `json:"fieldManager,omitempty"`
}
// +k8s:conversion-gen:explicit-from=net/url.Values
@@ -559,13 +559,13 @@ type PatchOptions struct {
// request. Valid values are:
// - All: all dry run stages will be processed
// +optional
- DryRun []string `json:"dryRun,omitempty" protobuf:"bytes,1,rep,name=dryRun"`
+ DryRun []string `json:"dryRun,omitempty"`
// Force is going to "force" Apply requests. It means user will
// re-acquire conflicting fields owned by other people. Force
// flag must be unset for non-apply patch requests.
// +optional
- Force *bool `json:"force,omitempty" protobuf:"varint,2,opt,name=force"`
+ Force *bool `json:"force,omitempty"`
// fieldManager is a name associated with the actor or entity
// that is making these changes. The value must be less than or
@@ -575,7 +575,7 @@ type PatchOptions struct {
// (application/apply-patch) but optional for non-apply patch
// types (JsonPatch, MergePatch, StrategicMergePatch).
// +optional
- FieldManager string `json:"fieldManager,omitempty" protobuf:"bytes,3,name=fieldManager"`
+ FieldManager string `json:"fieldManager,omitempty"`
}
// ApplyOptions may be provided when applying an API object.
@@ -591,18 +591,18 @@ type ApplyOptions struct {
// request. Valid values are:
// - All: all dry run stages will be processed
// +optional
- DryRun []string `json:"dryRun,omitempty" protobuf:"bytes,1,rep,name=dryRun"`
+ DryRun []string `json:"dryRun,omitempty"`
// Force is going to "force" Apply requests. It means user will
// re-acquire conflicting fields owned by other people.
- Force bool `json:"force" protobuf:"varint,2,opt,name=force"`
+ Force bool `json:"force"`
// fieldManager is a name associated with the actor or entity
// that is making these changes. The value must be less than or
// 128 characters long, and only contain printable characters,
// as defined by https://golang.org/pkg/unicode/#IsPrint. This
// field is required.
- FieldManager string `json:"fieldManager" protobuf:"bytes,3,name=fieldManager"`
+ FieldManager string `json:"fieldManager"`
}
func (o ApplyOptions) ToPatchOptions() PatchOptions {
@@ -623,24 +623,24 @@ type UpdateOptions struct {
// request. Valid values are:
// - All: all dry run stages will be processed
// +optional
- DryRun []string `json:"dryRun,omitempty" protobuf:"bytes,1,rep,name=dryRun"`
+ DryRun []string `json:"dryRun,omitempty"`
// fieldManager is a name associated with the actor or entity
// that is making these changes. The value must be less than or
// 128 characters long, and only contain printable characters,
// as defined by https://golang.org/pkg/unicode/#IsPrint.
// +optional
- FieldManager string `json:"fieldManager,omitempty" protobuf:"bytes,2,name=fieldManager"`
+ FieldManager string `json:"fieldManager,omitempty"`
}
// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
type Preconditions struct {
// Specifies the target UID.
// +optional
- UID *types.UID `json:"uid,omitempty" protobuf:"bytes,1,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
+ UID *types.UID `json:"uid,omitempty"`
// Specifies the target ResourceVersion
// +optional
- ResourceVersion *string `json:"resourceVersion,omitempty" protobuf:"bytes,2,opt,name=resourceVersion"`
+ ResourceVersion *string `json:"resourceVersion,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
@@ -651,31 +651,31 @@ type Status struct {
// Standard list metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
// +optional
- ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
+ ListMeta `json:"metadata,omitempty"`
// Status of the operation.
// One of: "Success" or "Failure".
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
- Status string `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"`
+ Status string `json:"status,omitempty"`
// A human-readable description of the status of this operation.
// +optional
- Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"`
+ Message string `json:"message,omitempty"`
// A machine-readable description of why this operation is in the
// "Failure" status. If this value is empty there
// is no information available. A Reason clarifies an HTTP status
// code but does not override it.
// +optional
- Reason StatusReason `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason,casttype=StatusReason"`
+ Reason StatusReason `json:"reason,omitempty"`
// Extended data associated with the reason. Each reason may define its
// own extended details. This field is optional and the data returned
// is not guaranteed to conform to any schema except that defined by
// the reason type.
// +optional
- Details *StatusDetails `json:"details,omitempty" protobuf:"bytes,5,opt,name=details"`
+ Details *StatusDetails `json:"details,omitempty"`
// Suggested HTTP return code for this status, 0 if not set.
// +optional
- Code int32 `json:"code,omitempty" protobuf:"varint,6,opt,name=code"`
+ Code int32 `json:"code,omitempty"`
}
// StatusDetails is a set of additional properties that MAY be set by the
@@ -688,29 +688,29 @@ type StatusDetails struct {
// The name attribute of the resource associated with the status StatusReason
// (when there is a single name which can be described).
// +optional
- Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
+ Name string `json:"name,omitempty"`
// The group attribute of the resource associated with the status StatusReason.
// +optional
- Group string `json:"group,omitempty" protobuf:"bytes,2,opt,name=group"`
+ Group string `json:"group,omitempty"`
// The kind attribute of the resource associated with the status StatusReason.
// On some operations may differ from the requested resource Kind.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
// +optional
- Kind string `json:"kind,omitempty" protobuf:"bytes,3,opt,name=kind"`
+ Kind string `json:"kind,omitempty"`
// UID of the resource.
// (when there is a single resource which can be described).
// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
// +optional
- UID types.UID `json:"uid,omitempty" protobuf:"bytes,6,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
+ UID types.UID `json:"uid,omitempty"`
// The Causes array includes more details associated with the StatusReason
// failure. Not all StatusReasons may provide detailed causes.
// +optional
- Causes []StatusCause `json:"causes,omitempty" protobuf:"bytes,4,rep,name=causes"`
+ Causes []StatusCause `json:"causes,omitempty"`
// If specified, the time in seconds before the operation should be retried. Some errors may indicate
// the client must take an alternate action - for those errors this field may indicate how long to wait
// before taking the alternate action.
// +optional
- RetryAfterSeconds int32 `json:"retryAfterSeconds,omitempty" protobuf:"varint,5,opt,name=retryAfterSeconds"`
+ RetryAfterSeconds int32 `json:"retryAfterSeconds,omitempty"`
}
// Values of Status.Status
@@ -877,11 +877,11 @@ type StatusCause struct {
// A machine-readable description of the cause of the error. If this value is
// empty there is no information available.
// +optional
- Type CauseType `json:"reason,omitempty" protobuf:"bytes,1,opt,name=reason,casttype=CauseType"`
+ Type CauseType `json:"reason,omitempty"`
// A human-readable description of the cause of the error. This field may be
// presented as-is to a reader.
// +optional
- Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"`
+ Message string `json:"message,omitempty"`
// The field of the resource that has caused this error, as named by its JSON
// serialization. May include dot and postfix notation for nested attributes.
// Arrays are zero-indexed. Fields may appear more than once in an array of
@@ -892,7 +892,7 @@ type StatusCause struct {
// "name" - the field "name" on the current resource
// "items[0].name" - the field "name" on the first array entry in "items"
// +optional
- Field string `json:"field,omitempty" protobuf:"bytes,3,opt,name=field"`
+ Field string `json:"field,omitempty"`
}
// CauseType is a machine readable value providing more detail about what
@@ -936,7 +936,7 @@ const (
type APIVersions struct {
TypeMeta `json:",inline"`
// versions are the api versions that are available.
- Versions []string `json:"versions" protobuf:"bytes,1,rep,name=versions"`
+ Versions []string `json:"versions"`
// a map of client CIDR to server address that is serving this group.
// This is to help clients reach servers in the most network-efficient way possible.
// Clients can use the appropriate server address as per the CIDR that they match.
@@ -944,7 +944,7 @@ type APIVersions struct {
// The server returns only those CIDRs that it thinks that the client can match.
// For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
// Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
- ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs" protobuf:"bytes,2,rep,name=serverAddressByClientCIDRs"`
+ ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
@@ -954,7 +954,7 @@ type APIVersions struct {
type APIGroupList struct {
TypeMeta `json:",inline"`
// groups is a list of APIGroup.
- Groups []APIGroup `json:"groups" protobuf:"bytes,1,rep,name=groups"`
+ Groups []APIGroup `json:"groups"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
@@ -964,13 +964,13 @@ type APIGroupList struct {
type APIGroup struct {
TypeMeta `json:",inline"`
// name is the name of the group.
- Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
+ Name string `json:"name"`
// versions are the versions supported in this group.
- Versions []GroupVersionForDiscovery `json:"versions" protobuf:"bytes,2,rep,name=versions"`
+ Versions []GroupVersionForDiscovery `json:"versions"`
// preferredVersion is the version preferred by the API server, which
// probably is the storage version.
// +optional
- PreferredVersion GroupVersionForDiscovery `json:"preferredVersion,omitempty" protobuf:"bytes,3,opt,name=preferredVersion"`
+ PreferredVersion GroupVersionForDiscovery `json:"preferredVersion,omitempty"`
// a map of client CIDR to server address that is serving this group.
// This is to help clients reach servers in the most network-efficient way possible.
// Clients can use the appropriate server address as per the CIDR that they match.
@@ -979,53 +979,53 @@ type APIGroup struct {
// For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
// Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
// +optional
- ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs,omitempty" protobuf:"bytes,4,rep,name=serverAddressByClientCIDRs"`
+ ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs,omitempty"`
}
// ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
type ServerAddressByClientCIDR struct {
// The CIDR with which clients can match their IP to figure out the server address that they should use.
- ClientCIDR string `json:"clientCIDR" protobuf:"bytes,1,opt,name=clientCIDR"`
+ ClientCIDR string `json:"clientCIDR"`
// Address of this server, suitable for a client that matches the above CIDR.
// This can be a hostname, hostname:port, IP or IP:port.
- ServerAddress string `json:"serverAddress" protobuf:"bytes,2,opt,name=serverAddress"`
+ ServerAddress string `json:"serverAddress"`
}
// GroupVersion contains the "group/version" and "version" string of a version.
// It is made a struct to keep extensibility.
type GroupVersionForDiscovery struct {
// groupVersion specifies the API group and version in the form "group/version"
- GroupVersion string `json:"groupVersion" protobuf:"bytes,1,opt,name=groupVersion"`
+ GroupVersion string `json:"groupVersion"`
// version specifies the version in the form of "version". This is to save
// the clients the trouble of splitting the GroupVersion.
- Version string `json:"version" protobuf:"bytes,2,opt,name=version"`
+ Version string `json:"version"`
}
// APIResource specifies the name of a resource and whether it is namespaced.
type APIResource struct {
// name is the plural name of the resource.
- Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
+ Name string `json:"name"`
// singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely.
// The singularName is more correct for reporting status on a single item and both singular and plural are allowed
// from the kubectl CLI interface.
- SingularName string `json:"singularName" protobuf:"bytes,6,opt,name=singularName"`
+ SingularName string `json:"singularName"`
// namespaced indicates if a resource is namespaced or not.
- Namespaced bool `json:"namespaced" protobuf:"varint,2,opt,name=namespaced"`
+ Namespaced bool `json:"namespaced"`
// group is the preferred group of the resource. Empty implies the group of the containing resource list.
// For subresources, this may have a different value, for example: Scale".
- Group string `json:"group,omitempty" protobuf:"bytes,8,opt,name=group"`
+ Group string `json:"group,omitempty"`
// version is the preferred version of the resource. Empty implies the version of the containing resource list
// For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
- Version string `json:"version,omitempty" protobuf:"bytes,9,opt,name=version"`
+ Version string `json:"version,omitempty"`
// kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
- Kind string `json:"kind" protobuf:"bytes,3,opt,name=kind"`
+ Kind string `json:"kind"`
// verbs is a list of supported kube verbs (this includes get, list, watch, create,
// update, patch, delete, deletecollection, and proxy)
- Verbs Verbs `json:"verbs" protobuf:"bytes,4,opt,name=verbs"`
+ Verbs Verbs `json:"verbs"`
// shortNames is a list of suggested short names of the resource.
- ShortNames []string `json:"shortNames,omitempty" protobuf:"bytes,5,rep,name=shortNames"`
+ ShortNames []string `json:"shortNames,omitempty"`
// categories is a list of the grouped resources this resource belongs to (e.g. 'all')
- Categories []string `json:"categories,omitempty" protobuf:"bytes,7,rep,name=categories"`
+ Categories []string `json:"categories,omitempty"`
// The hash value of the storage version, the version this resource is
// converted to when written to the data store. Value must be treated
// as opaque by clients. Only equality comparison on the value is valid.
@@ -1034,7 +1034,7 @@ type APIResource struct {
// StorageVersionHash feature gate is enabled.
// This field will remain optional even if it graduates.
// +optional
- StorageVersionHash string `json:"storageVersionHash,omitempty" protobuf:"bytes,10,opt,name=storageVersionHash"`
+ StorageVersionHash string `json:"storageVersionHash,omitempty"`
}
// Verbs masks the value so protobuf can generate
@@ -1055,16 +1055,16 @@ func (vs Verbs) String() string {
type APIResourceList struct {
TypeMeta `json:",inline"`
// groupVersion is the group and version this APIResourceList is for.
- GroupVersion string `json:"groupVersion" protobuf:"bytes,1,opt,name=groupVersion"`
+ GroupVersion string `json:"groupVersion"`
// resources contains the name of the resources and if they are namespaced.
- APIResources []APIResource `json:"resources" protobuf:"bytes,2,rep,name=resources"`
+ APIResources []APIResource `json:"resources"`
}
// RootPaths lists the paths available at root.
// For example: "/healthz", "/apis".
type RootPaths struct {
// paths are the paths available at root.
- Paths []string `json:"paths" protobuf:"bytes,1,rep,name=paths"`
+ Paths []string `json:"paths"`
}
// TODO: remove me when watch is refactored
@@ -1104,10 +1104,10 @@ type LabelSelector struct {
// map is equivalent to an element of matchExpressions, whose key field is "key", the
// operator is "In", and the values array contains only "value". The requirements are ANDed.
// +optional
- MatchLabels map[string]string `json:"matchLabels,omitempty" protobuf:"bytes,1,rep,name=matchLabels"`
+ MatchLabels map[string]string `json:"matchLabels,omitempty"`
// matchExpressions is a list of label selector requirements. The requirements are ANDed.
// +optional
- MatchExpressions []LabelSelectorRequirement `json:"matchExpressions,omitempty" protobuf:"bytes,2,rep,name=matchExpressions"`
+ MatchExpressions []LabelSelectorRequirement `json:"matchExpressions,omitempty"`
}
// A label selector requirement is a selector that contains values, a key, and an operator that
@@ -1116,16 +1116,16 @@ type LabelSelectorRequirement struct {
// key is the label key that the selector applies to.
// +patchMergeKey=key
// +patchStrategy=merge
- Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"`
+ Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key"`
// operator represents a key's relationship to a set of values.
// Valid operators are In, NotIn, Exists and DoesNotExist.
- Operator LabelSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=LabelSelectorOperator"`
+ Operator LabelSelectorOperator `json:"operator"`
// values is an array of string values. If the operator is In or NotIn,
// the values array must be non-empty. If the operator is Exists or DoesNotExist,
// the values array must be empty. This array is replaced during a strategic
// merge patch.
// +optional
- Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"`
+ Values []string `json:"values,omitempty"`
}
// A label selector operator is the set of operators that can be used in a selector requirement.
@@ -1142,28 +1142,28 @@ const (
// that the fieldset applies to.
type ManagedFieldsEntry struct {
// Manager is an identifier of the workflow managing these fields.
- Manager string `json:"manager,omitempty" protobuf:"bytes,1,opt,name=manager"`
+ Manager string `json:"manager,omitempty"`
// Operation is the type of operation which lead to this ManagedFieldsEntry being created.
// The only valid values for this field are 'Apply' and 'Update'.
- Operation ManagedFieldsOperationType `json:"operation,omitempty" protobuf:"bytes,2,opt,name=operation,casttype=ManagedFieldsOperationType"`
+ Operation ManagedFieldsOperationType `json:"operation,omitempty"`
// APIVersion defines the version of this resource that this field set
// applies to. The format is "group/version" just like the top-level
// APIVersion field. It is necessary to track the version of a field
// set because it cannot be automatically converted.
- APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"`
+ APIVersion string `json:"apiVersion,omitempty"`
// Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply'
// +optional
- Time *Time `json:"time,omitempty" protobuf:"bytes,4,opt,name=time"`
+ Time *Time `json:"time,omitempty"`
// Fields is tombstoned to show why 5 is a reserved protobuf tag.
- //Fields *Fields `json:"fields,omitempty" protobuf:"bytes,5,opt,name=fields,casttype=Fields"`
+ //Fields *Fields `json:"fields,omitempty"`
// FieldsType is the discriminator for the different fields format and version.
// There is currently only one possible value: "FieldsV1"
- FieldsType string `json:"fieldsType,omitempty" protobuf:"bytes,6,opt,name=fieldsType"`
+ FieldsType string `json:"fieldsType,omitempty"`
// FieldsV1 holds the first JSON version format as described in the "FieldsV1" type.
// +optional
- FieldsV1 *FieldsV1 `json:"fieldsV1,omitempty" protobuf:"bytes,7,opt,name=fieldsV1"`
+ FieldsV1 *FieldsV1 `json:"fieldsV1,omitempty"`
// Subresource is the name of the subresource used to update that object, or
// empty string if the object was updated through the main resource. The
@@ -1172,7 +1172,7 @@ type ManagedFieldsEntry struct {
// regular update using the same manager name.
// Note that the APIVersion field is not related to the Subresource field and
// it always corresponds to the version of the main resource.
- Subresource string `json:"subresource,omitempty" protobuf:"bytes,8,opt,name=subresource"`
+ Subresource string `json:"subresource,omitempty"`
}
// ManagedFieldsOperationType is the type of operation which lead to a ManagedFieldsEntry being created.
@@ -1197,7 +1197,7 @@ const (
// +protobuf.options.(gogoproto.goproto_stringer)=false
type FieldsV1 struct {
// Raw is the underlying serialization of this object.
- Raw []byte `json:"-" protobuf:"bytes,1,opt,name=Raw"`
+ Raw []byte `json:"-"`
}
func (f FieldsV1) String() string {
@@ -1242,7 +1242,7 @@ type TableOptions struct {
// Specifying "None" will return no object, specifying "Object" will return the full object contents, and
// specifying "Metadata" (the default) will return the object's metadata in the PartialObjectMetadata kind
// in version v1beta1 of the meta.k8s.io API group.
- IncludeObject IncludeObjectPolicy `json:"includeObject,omitempty" protobuf:"bytes,1,opt,name=includeObject,casttype=IncludeObjectPolicy"`
+ IncludeObject IncludeObjectPolicy `json:"includeObject,omitempty"`
}
// PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients
@@ -1253,7 +1253,7 @@ type PartialObjectMetadata struct {
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
- ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
+ ObjectMeta `json:"metadata,omitempty"`
}
// PartialObjectMetadataList contains a list of objects containing only their metadata
@@ -1263,10 +1263,10 @@ type PartialObjectMetadataList struct {
// Standard list metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
// +optional
- ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
+ ListMeta `json:"metadata,omitempty"`
// items contains each of the included items.
- Items []PartialObjectMetadata `json:"items" protobuf:"bytes,2,rep,name=items"`
+ Items []PartialObjectMetadata `json:"items"`
}
// Condition contains details for one aspect of the current state of this API Resource.
@@ -1279,7 +1279,7 @@ type PartialObjectMetadataList struct {
// // +patchStrategy=merge
// // +listType=map
// // +listMapKey=type
-// Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
+// Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
//
// // other fields
// }
@@ -1293,25 +1293,25 @@ type Condition struct {
// +kubebuilder:validation:Required
// +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
// +kubebuilder:validation:MaxLength=316
- Type string `json:"type" protobuf:"bytes,1,opt,name=type"`
+ Type string `json:"type"`
// status of the condition, one of True, False, Unknown.
// +required
// +kubebuilder:validation:Required
// +kubebuilder:validation:Enum=True;False;Unknown
- Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status"`
+ Status ConditionStatus `json:"status"`
// observedGeneration represents the .metadata.generation that the condition was set based upon.
// For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
// with respect to the current state of the instance.
// +optional
// +kubebuilder:validation:Minimum=0
- ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"`
+ ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// lastTransitionTime is the last time the condition transitioned from one status to another.
// This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
// +required
// +kubebuilder:validation:Required
// +kubebuilder:validation:Type=string
// +kubebuilder:validation:Format=date-time
- LastTransitionTime Time `json:"lastTransitionTime" protobuf:"bytes,4,opt,name=lastTransitionTime"`
+ LastTransitionTime Time `json:"lastTransitionTime"`
// reason contains a programmatic identifier indicating the reason for the condition's last transition.
// Producers of specific condition types may define expected values and meanings for this field,
// and whether the values are considered a guaranteed API.
@@ -1322,11 +1322,11 @@ type Condition struct {
// +kubebuilder:validation:MaxLength=1024
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
- Reason string `json:"reason" protobuf:"bytes,5,opt,name=reason"`
+ Reason string `json:"reason"`
// message is a human readable message indicating details about the transition.
// This may be an empty string.
// +required
// +kubebuilder:validation:Required
// +kubebuilder:validation:MaxLength=32768
- Message string `json:"message" protobuf:"bytes,6,opt,name=message"`
+ Message string `json:"message"`
}
diff --git a/pkg/k8s.io/apimachinery/pkg/util/intstr/intstr.go b/pkg/k8s.io/apimachinery/pkg/util/intstr/intstr.go
index 237bfa81a..29872c22c 100644
--- a/pkg/k8s.io/apimachinery/pkg/util/intstr/intstr.go
+++ b/pkg/k8s.io/apimachinery/pkg/util/intstr/intstr.go
@@ -32,9 +32,9 @@ import (
// +protobuf.options.(gogoproto.goproto_stringer)=false
// +k8s:openapi-gen=true
type IntOrString struct {
- Type Type `protobuf:"varint,1,opt,name=type,casttype=Type"`
- IntVal int32 `protobuf:"varint,2,opt,name=intVal"`
- StrVal string `protobuf:"bytes,3,opt,name=strVal"`
+ Type Type
+ IntVal int32
+ StrVal string
}
// Type represents the stored type of IntOrString.