2018-12-19 14:29:25 +00:00
|
|
|
/*
|
2019-01-15 16:20:41 +00:00
|
|
|
Copyright The Kubernetes Authors.
|
2018-12-19 14:29:25 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2019-01-15 16:20:41 +00:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
2018-12-19 14:29:25 +00:00
|
|
|
// source: k8s.io/kubernetes/vendor/k8s.io/api/policy/v1beta1/generated.proto
|
|
|
|
|
|
|
|
package v1beta1
|
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
import (
|
|
|
|
fmt "fmt"
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
io "io"
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
|
|
|
|
k8s_io_api_core_v1 "k8s.io/api/core/v1"
|
|
|
|
v11 "k8s.io/api/core/v1"
|
|
|
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
math "math"
|
|
|
|
math_bits "math/bits"
|
|
|
|
reflect "reflect"
|
|
|
|
strings "strings"
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
intstr "k8s.io/apimachinery/pkg/util/intstr"
|
|
|
|
)
|
2018-12-19 14:29:25 +00:00
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
2020-04-14 07:04:33 +00:00
|
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
func (m *AllowedCSIDriver) Reset() { *m = AllowedCSIDriver{} }
|
|
|
|
func (*AllowedCSIDriver) ProtoMessage() {}
|
|
|
|
func (*AllowedCSIDriver) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{0}
|
|
|
|
}
|
|
|
|
func (m *AllowedCSIDriver) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *AllowedCSIDriver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *AllowedCSIDriver) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_AllowedCSIDriver.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *AllowedCSIDriver) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *AllowedCSIDriver) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_AllowedCSIDriver.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_AllowedCSIDriver proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *AllowedFlexVolume) Reset() { *m = AllowedFlexVolume{} }
|
|
|
|
func (*AllowedFlexVolume) ProtoMessage() {}
|
|
|
|
func (*AllowedFlexVolume) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{1}
|
|
|
|
}
|
|
|
|
func (m *AllowedFlexVolume) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *AllowedFlexVolume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *AllowedFlexVolume) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_AllowedFlexVolume.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *AllowedFlexVolume) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *AllowedFlexVolume) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_AllowedFlexVolume.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_AllowedFlexVolume proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *AllowedHostPath) Reset() { *m = AllowedHostPath{} }
|
|
|
|
func (*AllowedHostPath) ProtoMessage() {}
|
|
|
|
func (*AllowedHostPath) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{2}
|
|
|
|
}
|
|
|
|
func (m *AllowedHostPath) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *AllowedHostPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *AllowedHostPath) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_AllowedHostPath.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *AllowedHostPath) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *AllowedHostPath) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_AllowedHostPath.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_AllowedHostPath proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Eviction) Reset() { *m = Eviction{} }
|
|
|
|
func (*Eviction) ProtoMessage() {}
|
|
|
|
func (*Eviction) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{3}
|
|
|
|
}
|
|
|
|
func (m *Eviction) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *Eviction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *Eviction) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Eviction.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Eviction) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *Eviction) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Eviction.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Eviction proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *FSGroupStrategyOptions) Reset() { *m = FSGroupStrategyOptions{} }
|
|
|
|
func (*FSGroupStrategyOptions) ProtoMessage() {}
|
|
|
|
func (*FSGroupStrategyOptions) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{4}
|
|
|
|
}
|
|
|
|
func (m *FSGroupStrategyOptions) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *FSGroupStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *FSGroupStrategyOptions) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_FSGroupStrategyOptions.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *FSGroupStrategyOptions) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *FSGroupStrategyOptions) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_FSGroupStrategyOptions.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_FSGroupStrategyOptions proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *HostPortRange) Reset() { *m = HostPortRange{} }
|
|
|
|
func (*HostPortRange) ProtoMessage() {}
|
|
|
|
func (*HostPortRange) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{5}
|
|
|
|
}
|
|
|
|
func (m *HostPortRange) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *HostPortRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *HostPortRange) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_HostPortRange.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *HostPortRange) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *HostPortRange) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_HostPortRange.DiscardUnknown(m)
|
|
|
|
}
|
2019-04-03 07:57:13 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_HostPortRange proto.InternalMessageInfo
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
func (m *IDRange) Reset() { *m = IDRange{} }
|
|
|
|
func (*IDRange) ProtoMessage() {}
|
|
|
|
func (*IDRange) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{6}
|
|
|
|
}
|
|
|
|
func (m *IDRange) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IDRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IDRange) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IDRange.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IDRange) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IDRange) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IDRange.DiscardUnknown(m)
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_IDRange proto.InternalMessageInfo
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
func (m *PodDisruptionBudget) Reset() { *m = PodDisruptionBudget{} }
|
|
|
|
func (*PodDisruptionBudget) ProtoMessage() {}
|
|
|
|
func (*PodDisruptionBudget) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{7}
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudget) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudget) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PodDisruptionBudget.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudget) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudget) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PodDisruptionBudget.DiscardUnknown(m)
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_PodDisruptionBudget proto.InternalMessageInfo
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
func (m *PodDisruptionBudgetList) Reset() { *m = PodDisruptionBudgetList{} }
|
|
|
|
func (*PodDisruptionBudgetList) ProtoMessage() {}
|
|
|
|
func (*PodDisruptionBudgetList) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{8}
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PodDisruptionBudgetList.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetList) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PodDisruptionBudgetList.DiscardUnknown(m)
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_PodDisruptionBudgetList proto.InternalMessageInfo
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
func (m *PodDisruptionBudgetSpec) Reset() { *m = PodDisruptionBudgetSpec{} }
|
|
|
|
func (*PodDisruptionBudgetSpec) ProtoMessage() {}
|
|
|
|
func (*PodDisruptionBudgetSpec) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{9}
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetSpec) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetSpec) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PodDisruptionBudgetSpec.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetSpec) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetSpec) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PodDisruptionBudgetSpec.DiscardUnknown(m)
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_PodDisruptionBudgetSpec proto.InternalMessageInfo
|
2018-12-19 14:29:25 +00:00
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetStatus) Reset() { *m = PodDisruptionBudgetStatus{} }
|
|
|
|
func (*PodDisruptionBudgetStatus) ProtoMessage() {}
|
|
|
|
func (*PodDisruptionBudgetStatus) Descriptor() ([]byte, []int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
return fileDescriptor_014060e454a820dc, []int{10}
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetStatus) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetStatus) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PodDisruptionBudgetStatus.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetStatus) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetStatus) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PodDisruptionBudgetStatus.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PodDisruptionBudgetStatus proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicy) Reset() { *m = PodSecurityPolicy{} }
|
|
|
|
func (*PodSecurityPolicy) ProtoMessage() {}
|
|
|
|
func (*PodSecurityPolicy) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{11}
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicy) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicy) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PodSecurityPolicy.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicy) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicy) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PodSecurityPolicy.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PodSecurityPolicy proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicyList) Reset() { *m = PodSecurityPolicyList{} }
|
|
|
|
func (*PodSecurityPolicyList) ProtoMessage() {}
|
|
|
|
func (*PodSecurityPolicyList) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{12}
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicyList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicyList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PodSecurityPolicyList.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicyList) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicyList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PodSecurityPolicyList.DiscardUnknown(m)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_PodSecurityPolicyList proto.InternalMessageInfo
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
func (m *PodSecurityPolicySpec) Reset() { *m = PodSecurityPolicySpec{} }
|
|
|
|
func (*PodSecurityPolicySpec) ProtoMessage() {}
|
|
|
|
func (*PodSecurityPolicySpec) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{13}
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicySpec) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicySpec) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PodSecurityPolicySpec.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicySpec) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicySpec) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PodSecurityPolicySpec.DiscardUnknown(m)
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_PodSecurityPolicySpec proto.InternalMessageInfo
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2019-01-15 16:20:41 +00:00
|
|
|
func (m *RunAsGroupStrategyOptions) Reset() { *m = RunAsGroupStrategyOptions{} }
|
|
|
|
func (*RunAsGroupStrategyOptions) ProtoMessage() {}
|
|
|
|
func (*RunAsGroupStrategyOptions) Descriptor() ([]byte, []int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
return fileDescriptor_014060e454a820dc, []int{14}
|
|
|
|
}
|
|
|
|
func (m *RunAsGroupStrategyOptions) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
2019-01-15 16:20:41 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
func (m *RunAsGroupStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *RunAsGroupStrategyOptions) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RunAsGroupStrategyOptions.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *RunAsGroupStrategyOptions) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *RunAsGroupStrategyOptions) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RunAsGroupStrategyOptions.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RunAsGroupStrategyOptions proto.InternalMessageInfo
|
2019-01-15 16:20:41 +00:00
|
|
|
|
2018-12-19 14:29:25 +00:00
|
|
|
func (m *RunAsUserStrategyOptions) Reset() { *m = RunAsUserStrategyOptions{} }
|
|
|
|
func (*RunAsUserStrategyOptions) ProtoMessage() {}
|
|
|
|
func (*RunAsUserStrategyOptions) Descriptor() ([]byte, []int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
return fileDescriptor_014060e454a820dc, []int{15}
|
|
|
|
}
|
|
|
|
func (m *RunAsUserStrategyOptions) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *RunAsUserStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *RunAsUserStrategyOptions) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RunAsUserStrategyOptions.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *RunAsUserStrategyOptions) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *RunAsUserStrategyOptions) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RunAsUserStrategyOptions.DiscardUnknown(m)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_RunAsUserStrategyOptions proto.InternalMessageInfo
|
|
|
|
|
2019-06-24 09:08:09 +00:00
|
|
|
func (m *RuntimeClassStrategyOptions) Reset() { *m = RuntimeClassStrategyOptions{} }
|
|
|
|
func (*RuntimeClassStrategyOptions) ProtoMessage() {}
|
|
|
|
func (*RuntimeClassStrategyOptions) Descriptor() ([]byte, []int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
return fileDescriptor_014060e454a820dc, []int{16}
|
|
|
|
}
|
|
|
|
func (m *RuntimeClassStrategyOptions) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *RuntimeClassStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *RuntimeClassStrategyOptions) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RuntimeClassStrategyOptions.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *RuntimeClassStrategyOptions) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *RuntimeClassStrategyOptions) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RuntimeClassStrategyOptions.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RuntimeClassStrategyOptions proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *SELinuxStrategyOptions) Reset() { *m = SELinuxStrategyOptions{} }
|
|
|
|
func (*SELinuxStrategyOptions) ProtoMessage() {}
|
|
|
|
func (*SELinuxStrategyOptions) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_014060e454a820dc, []int{17}
|
|
|
|
}
|
|
|
|
func (m *SELinuxStrategyOptions) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *SELinuxStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *SELinuxStrategyOptions) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SELinuxStrategyOptions.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *SELinuxStrategyOptions) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *SELinuxStrategyOptions) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SELinuxStrategyOptions.DiscardUnknown(m)
|
2019-06-24 09:08:09 +00:00
|
|
|
}
|
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_SELinuxStrategyOptions proto.InternalMessageInfo
|
2018-12-19 14:29:25 +00:00
|
|
|
|
|
|
|
func (m *SupplementalGroupsStrategyOptions) Reset() { *m = SupplementalGroupsStrategyOptions{} }
|
|
|
|
func (*SupplementalGroupsStrategyOptions) ProtoMessage() {}
|
|
|
|
func (*SupplementalGroupsStrategyOptions) Descriptor() ([]byte, []int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
return fileDescriptor_014060e454a820dc, []int{18}
|
|
|
|
}
|
|
|
|
func (m *SupplementalGroupsStrategyOptions) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *SupplementalGroupsStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *SupplementalGroupsStrategyOptions) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SupplementalGroupsStrategyOptions.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *SupplementalGroupsStrategyOptions) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *SupplementalGroupsStrategyOptions) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SupplementalGroupsStrategyOptions.DiscardUnknown(m)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_SupplementalGroupsStrategyOptions proto.InternalMessageInfo
|
|
|
|
|
2018-12-19 14:29:25 +00:00
|
|
|
func init() {
|
2019-04-03 07:57:13 +00:00
|
|
|
proto.RegisterType((*AllowedCSIDriver)(nil), "k8s.io.api.policy.v1beta1.AllowedCSIDriver")
|
2018-12-19 14:29:25 +00:00
|
|
|
proto.RegisterType((*AllowedFlexVolume)(nil), "k8s.io.api.policy.v1beta1.AllowedFlexVolume")
|
|
|
|
proto.RegisterType((*AllowedHostPath)(nil), "k8s.io.api.policy.v1beta1.AllowedHostPath")
|
|
|
|
proto.RegisterType((*Eviction)(nil), "k8s.io.api.policy.v1beta1.Eviction")
|
|
|
|
proto.RegisterType((*FSGroupStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.FSGroupStrategyOptions")
|
|
|
|
proto.RegisterType((*HostPortRange)(nil), "k8s.io.api.policy.v1beta1.HostPortRange")
|
|
|
|
proto.RegisterType((*IDRange)(nil), "k8s.io.api.policy.v1beta1.IDRange")
|
|
|
|
proto.RegisterType((*PodDisruptionBudget)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudget")
|
|
|
|
proto.RegisterType((*PodDisruptionBudgetList)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudgetList")
|
|
|
|
proto.RegisterType((*PodDisruptionBudgetSpec)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec")
|
|
|
|
proto.RegisterType((*PodDisruptionBudgetStatus)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus")
|
2020-01-14 10:38:55 +00:00
|
|
|
proto.RegisterMapType((map[string]v1.Time)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus.DisruptedPodsEntry")
|
2018-12-19 14:29:25 +00:00
|
|
|
proto.RegisterType((*PodSecurityPolicy)(nil), "k8s.io.api.policy.v1beta1.PodSecurityPolicy")
|
|
|
|
proto.RegisterType((*PodSecurityPolicyList)(nil), "k8s.io.api.policy.v1beta1.PodSecurityPolicyList")
|
|
|
|
proto.RegisterType((*PodSecurityPolicySpec)(nil), "k8s.io.api.policy.v1beta1.PodSecurityPolicySpec")
|
2019-01-15 16:20:41 +00:00
|
|
|
proto.RegisterType((*RunAsGroupStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions")
|
2018-12-19 14:29:25 +00:00
|
|
|
proto.RegisterType((*RunAsUserStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions")
|
2019-06-24 09:08:09 +00:00
|
|
|
proto.RegisterType((*RuntimeClassStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions")
|
2018-12-19 14:29:25 +00:00
|
|
|
proto.RegisterType((*SELinuxStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.SELinuxStrategyOptions")
|
|
|
|
proto.RegisterType((*SupplementalGroupsStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions")
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/policy/v1beta1/generated.proto", fileDescriptor_014060e454a820dc)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor_014060e454a820dc = []byte{
|
2022-05-05 02:47:06 +00:00
|
|
|
// 1907 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0x5b, 0x73, 0xdb, 0xc6,
|
|
|
|
0xf5, 0x17, 0x4c, 0x5d, 0xa8, 0xd5, 0xc5, 0xe2, 0xea, 0x62, 0x48, 0xf9, 0x87, 0x70, 0x90, 0x99,
|
|
|
|
0xff, 0xb8, 0x69, 0x0a, 0xc6, 0xb2, 0xe3, 0x7a, 0x9a, 0x5e, 0x22, 0x88, 0x92, 0xad, 0x8c, 0x65,
|
|
|
|
0xb1, 0x4b, 0x3b, 0xd3, 0x76, 0xdc, 0x4e, 0x97, 0xc0, 0x8a, 0x42, 0x04, 0x02, 0x28, 0x76, 0xc1,
|
|
|
|
0x88, 0x6f, 0x7d, 0xe8, 0x43, 0x1f, 0xfb, 0x05, 0x32, 0xfd, 0x00, 0x9d, 0x3e, 0xf5, 0x43, 0xd4,
|
|
|
|
0x99, 0xe9, 0x64, 0xf2, 0x98, 0xe9, 0x03, 0xa7, 0x66, 0xbf, 0x85, 0x9f, 0x3a, 0x58, 0x2e, 0x40,
|
|
|
|
0x5c, 0x49, 0x3b, 0x33, 0xf6, 0x1b, 0xb1, 0xe7, 0xf7, 0xfb, 0x9d, 0xdd, 0xb3, 0x67, 0xcf, 0x5e,
|
|
|
|
0x08, 0xf4, 0xcb, 0xfb, 0x54, 0xb3, 0xdc, 0xc6, 0x65, 0xd0, 0x21, 0xbe, 0x43, 0x18, 0xa1, 0x8d,
|
|
|
|
0x3e, 0x71, 0x4c, 0xd7, 0x6f, 0x08, 0x03, 0xf6, 0xac, 0x86, 0xe7, 0xda, 0x96, 0x31, 0x68, 0xf4,
|
|
|
|
0x6f, 0x77, 0x08, 0xc3, 0xb7, 0x1b, 0x5d, 0xe2, 0x10, 0x1f, 0x33, 0x62, 0x6a, 0x9e, 0xef, 0x32,
|
|
|
|
0x17, 0xee, 0x8e, 0xa1, 0x1a, 0xf6, 0x2c, 0x6d, 0x0c, 0xd5, 0x04, 0x74, 0xef, 0x47, 0x5d, 0x8b,
|
|
|
|
0x5d, 0x04, 0x1d, 0xcd, 0x70, 0x7b, 0x8d, 0xae, 0xdb, 0x75, 0x1b, 0x9c, 0xd1, 0x09, 0xce, 0xf9,
|
|
|
|
0x17, 0xff, 0xe0, 0xbf, 0xc6, 0x4a, 0x7b, 0x6a, 0xc2, 0xa9, 0xe1, 0xfa, 0xa4, 0xd1, 0xcf, 0x79,
|
|
|
|
0xdb, 0xbb, 0x3b, 0xc1, 0xf4, 0xb0, 0x71, 0x61, 0x39, 0xc4, 0x1f, 0x34, 0xbc, 0xcb, 0x6e, 0xd8,
|
|
|
|
0x40, 0x1b, 0x3d, 0xc2, 0x70, 0x11, 0xab, 0x51, 0xc6, 0xf2, 0x03, 0x87, 0x59, 0x3d, 0x92, 0x23,
|
|
|
|
0xdc, 0x9b, 0x45, 0xa0, 0xc6, 0x05, 0xe9, 0xe1, 0x1c, 0xef, 0x4e, 0x19, 0x2f, 0x60, 0x96, 0xdd,
|
|
|
|
0xb0, 0x1c, 0x46, 0x99, 0x9f, 0x25, 0xa9, 0x77, 0xc1, 0xc6, 0x81, 0x6d, 0xbb, 0x5f, 0x12, 0xf3,
|
|
|
|
0xb0, 0x7d, 0xd2, 0xf4, 0xad, 0x3e, 0xf1, 0xe1, 0x4d, 0x30, 0xef, 0xe0, 0x1e, 0x91, 0xa5, 0x9b,
|
|
|
|
0xd2, 0xad, 0x65, 0x7d, 0xf5, 0xf9, 0x50, 0x99, 0x1b, 0x0d, 0x95, 0xf9, 0xc7, 0xb8, 0x47, 0x10,
|
|
|
|
0xb7, 0xa8, 0x9f, 0x80, 0x9a, 0x60, 0x1d, 0xdb, 0xe4, 0xea, 0x73, 0xd7, 0x0e, 0x7a, 0x04, 0xfe,
|
|
|
|
0x3f, 0x58, 0x34, 0xb9, 0x80, 0x20, 0xae, 0x0b, 0xe2, 0xe2, 0x58, 0x16, 0x09, 0xab, 0x4a, 0xc1,
|
|
|
|
0x75, 0x41, 0x7e, 0xe8, 0x52, 0xd6, 0xc2, 0xec, 0x02, 0xee, 0x03, 0xe0, 0x61, 0x76, 0xd1, 0xf2,
|
|
|
|
0xc9, 0xb9, 0x75, 0x25, 0xe8, 0x50, 0xd0, 0x41, 0x2b, 0xb6, 0xa0, 0x04, 0x0a, 0x7e, 0x08, 0xaa,
|
|
|
|
0x3e, 0xc1, 0xe6, 0x99, 0x63, 0x0f, 0xe4, 0x6b, 0x37, 0xa5, 0x5b, 0x55, 0x7d, 0x43, 0x30, 0xaa,
|
|
|
|
0x48, 0xb4, 0xa3, 0x18, 0xa1, 0xfe, 0x5b, 0x02, 0xd5, 0xa3, 0xbe, 0x65, 0x30, 0xcb, 0x75, 0xe0,
|
|
|
|
0xef, 0x41, 0x35, 0x9c, 0x2d, 0x13, 0x33, 0xcc, 0x9d, 0xad, 0xec, 0x7f, 0xa4, 0x4d, 0x32, 0x29,
|
|
|
|
0x0e, 0x9e, 0xe6, 0x5d, 0x76, 0xc3, 0x06, 0xaa, 0x85, 0x68, 0xad, 0x7f, 0x5b, 0x3b, 0xeb, 0x7c,
|
|
|
|
0x41, 0x0c, 0x76, 0x4a, 0x18, 0x9e, 0x74, 0x6f, 0xd2, 0x86, 0x62, 0x55, 0x68, 0x83, 0x35, 0x93,
|
|
|
|
0xd8, 0x84, 0x91, 0x33, 0x2f, 0xf4, 0x48, 0x79, 0x0f, 0x57, 0xf6, 0xef, 0xbc, 0x9a, 0x9b, 0x66,
|
|
|
|
0x92, 0xaa, 0xd7, 0x46, 0x43, 0x65, 0x2d, 0xd5, 0x84, 0xd2, 0xe2, 0xea, 0x57, 0x12, 0xd8, 0x39,
|
|
|
|
0x6e, 0x3f, 0xf0, 0xdd, 0xc0, 0x6b, 0xb3, 0x70, 0x76, 0xbb, 0x03, 0x61, 0x82, 0x3f, 0x06, 0xf3,
|
|
|
|
0x7e, 0x60, 0x47, 0x73, 0xf9, 0x7e, 0x34, 0x97, 0x28, 0xb0, 0xc9, 0xcb, 0xa1, 0xb2, 0x99, 0x61,
|
|
|
|
0x3d, 0x19, 0x78, 0x04, 0x71, 0x02, 0xfc, 0x0c, 0x2c, 0xfa, 0xd8, 0xe9, 0x92, 0xb0, 0xeb, 0x95,
|
|
|
|
0x5b, 0x2b, 0xfb, 0xaa, 0x56, 0xba, 0xd6, 0xb4, 0x93, 0x26, 0x0a, 0xa1, 0x93, 0x19, 0xe7, 0x9f,
|
|
|
|
0x14, 0x09, 0x05, 0xf5, 0x14, 0xac, 0xf1, 0xa9, 0x76, 0x7d, 0xc6, 0x2d, 0xf0, 0x5d, 0x50, 0xe9,
|
|
|
|
0x59, 0x0e, 0xef, 0xd4, 0x82, 0xbe, 0x22, 0x58, 0x95, 0x53, 0xcb, 0x41, 0x61, 0x3b, 0x37, 0xe3,
|
|
|
|
0x2b, 0x1e, 0xb3, 0xa4, 0x19, 0x5f, 0xa1, 0xb0, 0x5d, 0x7d, 0x00, 0x96, 0x84, 0xc7, 0xa4, 0x50,
|
|
|
|
0x65, 0xba, 0x50, 0xa5, 0x40, 0xe8, 0x6f, 0xd7, 0xc0, 0x66, 0xcb, 0x35, 0x9b, 0x16, 0xf5, 0x03,
|
|
|
|
0x1e, 0x2f, 0x3d, 0x30, 0xbb, 0x84, 0xbd, 0x85, 0xfc, 0x78, 0x02, 0xe6, 0xa9, 0x47, 0x0c, 0x91,
|
|
|
|
0x16, 0xfb, 0x53, 0x62, 0x5b, 0xd0, 0xbf, 0xb6, 0x47, 0x8c, 0xc9, 0xb2, 0x0c, 0xbf, 0x10, 0x57,
|
|
|
|
0x83, 0xcf, 0xc0, 0x22, 0x65, 0x98, 0x05, 0x54, 0xae, 0x70, 0xdd, 0xbb, 0xaf, 0xa9, 0xcb, 0xb9,
|
|
|
|
0x93, 0x59, 0x1c, 0x7f, 0x23, 0xa1, 0xa9, 0xfe, 0x4b, 0x02, 0x37, 0x0a, 0x58, 0x8f, 0x2c, 0xca,
|
|
|
|
0xe0, 0xb3, 0x5c, 0xc4, 0xb4, 0x57, 0x8b, 0x58, 0xc8, 0xe6, 0xf1, 0x8a, 0x17, 0x6f, 0xd4, 0x92,
|
|
|
|
0x88, 0x56, 0x1b, 0x2c, 0x58, 0x8c, 0xf4, 0xa2, 0x54, 0xd4, 0x5e, 0x6f, 0x58, 0xfa, 0x9a, 0x90,
|
|
|
|
0x5e, 0x38, 0x09, 0x45, 0xd0, 0x58, 0x4b, 0xfd, 0xe6, 0x5a, 0xe1, 0x70, 0xc2, 0x70, 0xc2, 0x73,
|
|
|
|
0xb0, 0xda, 0xb3, 0x9c, 0x83, 0x3e, 0xb6, 0x6c, 0xdc, 0x11, 0xab, 0x67, 0x5a, 0x12, 0x84, 0x15,
|
|
|
|
0x56, 0x1b, 0x57, 0x58, 0xed, 0xc4, 0x61, 0x67, 0x7e, 0x9b, 0xf9, 0x96, 0xd3, 0xd5, 0x37, 0x46,
|
|
|
|
0x43, 0x65, 0xf5, 0x34, 0xa1, 0x84, 0x52, 0xba, 0xf0, 0xb7, 0xa0, 0x4a, 0x89, 0x4d, 0x0c, 0xe6,
|
|
|
|
0xfa, 0xaf, 0x57, 0x21, 0x1e, 0xe1, 0x0e, 0xb1, 0xdb, 0x82, 0xaa, 0xaf, 0x86, 0x71, 0x8b, 0xbe,
|
|
|
|
0x50, 0x2c, 0x09, 0x6d, 0xb0, 0xde, 0xc3, 0x57, 0x4f, 0x1d, 0x1c, 0x0f, 0xa4, 0xf2, 0x3d, 0x07,
|
|
|
|
0x02, 0x47, 0x43, 0x65, 0xfd, 0x34, 0xa5, 0x85, 0x32, 0xda, 0xea, 0x3f, 0x17, 0xc0, 0x6e, 0x69,
|
|
|
|
0x56, 0xc1, 0xcf, 0x00, 0x74, 0x3b, 0x94, 0xf8, 0x7d, 0x62, 0x3e, 0x18, 0xef, 0x41, 0x96, 0x1b,
|
|
|
|
0x2d, 0xdc, 0x3d, 0x31, 0x41, 0xf0, 0x2c, 0x87, 0x40, 0x05, 0x2c, 0xf8, 0x27, 0x09, 0xac, 0x99,
|
|
|
|
0x63, 0x37, 0xc4, 0x6c, 0xb9, 0x66, 0x94, 0x18, 0x0f, 0xbe, 0x4f, 0xbe, 0x6b, 0xcd, 0xa4, 0xd2,
|
|
|
|
0x91, 0xc3, 0xfc, 0x81, 0xbe, 0x2d, 0x3a, 0xb4, 0x96, 0xb2, 0xa1, 0xb4, 0xd3, 0x70, 0x48, 0x66,
|
|
|
|
0x2c, 0x49, 0xc5, 0x9e, 0xc6, 0x43, 0xbc, 0x30, 0x19, 0x52, 0x33, 0x87, 0x40, 0x05, 0x2c, 0xf8,
|
|
|
|
0x73, 0xb0, 0x6e, 0x04, 0xbe, 0x4f, 0x1c, 0xf6, 0x90, 0x60, 0x9b, 0x5d, 0x0c, 0xe4, 0x79, 0xae,
|
|
|
|
0xb3, 0x23, 0x74, 0xd6, 0x0f, 0x53, 0x56, 0x94, 0x41, 0x87, 0x7c, 0x93, 0x50, 0xcb, 0x27, 0x66,
|
|
|
|
0xc4, 0x5f, 0x48, 0xf3, 0x9b, 0x29, 0x2b, 0xca, 0xa0, 0xe1, 0x7d, 0xb0, 0x4a, 0xae, 0x3c, 0x62,
|
|
|
|
0x44, 0x01, 0x5d, 0xe4, 0xec, 0x2d, 0xc1, 0x5e, 0x3d, 0x4a, 0xd8, 0x50, 0x0a, 0x09, 0x0d, 0x00,
|
|
|
|
0x0c, 0xd7, 0x31, 0xad, 0xf1, 0x3e, 0xb7, 0xc4, 0x27, 0xa2, 0xf1, 0x6a, 0x59, 0x7c, 0x18, 0xf1,
|
|
|
|
0x26, 0xd5, 0x32, 0x6e, 0xa2, 0x28, 0x21, 0xbb, 0x67, 0x03, 0x98, 0x9f, 0x26, 0xb8, 0x01, 0x2a,
|
|
|
|
0x97, 0x64, 0x30, 0xde, 0xdb, 0x50, 0xf8, 0x13, 0x7e, 0x0a, 0x16, 0xfa, 0xd8, 0x0e, 0x88, 0x58,
|
|
|
|
0x4d, 0x1f, 0xbc, 0x5a, 0x3f, 0x9e, 0x58, 0x3d, 0x82, 0xc6, 0xc4, 0x9f, 0x5c, 0xbb, 0x2f, 0xa9,
|
|
|
|
0x5f, 0x4b, 0xa0, 0xd6, 0x72, 0xcd, 0x36, 0x31, 0x02, 0xdf, 0x62, 0x83, 0x16, 0xcf, 0xa4, 0xb7,
|
|
|
|
0xb0, 0x2b, 0xa0, 0xd4, 0xae, 0xf0, 0xd1, 0xf4, 0x6c, 0x4e, 0xf7, 0xae, 0x6c, 0x4f, 0x50, 0x9f,
|
|
|
|
0x4b, 0x60, 0x3b, 0x87, 0x7e, 0x0b, 0x35, 0xfb, 0x97, 0xe9, 0x9a, 0xfd, 0xe1, 0xeb, 0x0c, 0xa6,
|
|
|
|
0xa4, 0x62, 0x7f, 0x5d, 0x2b, 0x18, 0x0a, 0xaf, 0xd7, 0xe1, 0xf9, 0xd1, 0xb7, 0xfa, 0x96, 0x4d,
|
|
|
|
0xba, 0xc4, 0xe4, 0x83, 0xa9, 0x26, 0xce, 0x8f, 0xb1, 0x05, 0x25, 0x50, 0x90, 0x82, 0x1d, 0x93,
|
|
|
|
0x9c, 0xe3, 0xc0, 0x66, 0x07, 0xa6, 0x79, 0x88, 0x3d, 0xdc, 0xb1, 0x6c, 0x8b, 0x59, 0xe2, 0xc0,
|
|
|
|
0xb3, 0xac, 0x7f, 0x32, 0x1a, 0x2a, 0x3b, 0xcd, 0x42, 0xc4, 0xcb, 0xa1, 0xf2, 0x6e, 0xfe, 0xbe,
|
|
|
|
0xa0, 0xc5, 0x90, 0x01, 0x2a, 0x91, 0x86, 0x03, 0x20, 0xfb, 0xe4, 0x0f, 0x41, 0xb8, 0xf2, 0x9a,
|
|
|
|
0xbe, 0xeb, 0xa5, 0xdc, 0x56, 0xb8, 0xdb, 0x9f, 0x8d, 0x86, 0x8a, 0x8c, 0x4a, 0x30, 0xb3, 0x1d,
|
|
|
|
0x97, 0xca, 0xc3, 0x2f, 0xc0, 0x26, 0x16, 0x27, 0xfd, 0xa4, 0xd7, 0x79, 0xee, 0xf5, 0xfe, 0x68,
|
|
|
|
0xa8, 0x6c, 0x1e, 0xe4, 0xcd, 0xb3, 0x1d, 0x16, 0x89, 0xc2, 0x06, 0x58, 0xea, 0xf3, 0x4b, 0x01,
|
|
|
|
0x95, 0x17, 0xb8, 0xfe, 0xf6, 0x68, 0xa8, 0x2c, 0x8d, 0xef, 0x09, 0xa1, 0xe6, 0xe2, 0x71, 0x9b,
|
|
|
|
0x1f, 0x35, 0x23, 0x14, 0xfc, 0x18, 0xac, 0x5c, 0xb8, 0x94, 0x3d, 0x26, 0xec, 0x4b, 0xd7, 0xbf,
|
|
|
|
0xe4, 0xd5, 0xa7, 0xaa, 0x6f, 0x8a, 0x19, 0x5c, 0x79, 0x38, 0x31, 0xa1, 0x24, 0x0e, 0xfe, 0x1a,
|
|
|
|
0x2c, 0x5f, 0x88, 0x83, 0x65, 0x54, 0x7a, 0x6e, 0x4d, 0x49, 0xb4, 0xd4, 0x21, 0x54, 0xaf, 0x09,
|
|
|
|
0xf9, 0xe5, 0xa8, 0x99, 0xa2, 0x89, 0x1a, 0xfc, 0x01, 0x58, 0xe2, 0x1f, 0x27, 0x4d, 0xb9, 0xca,
|
|
|
|
0x7b, 0x73, 0x5d, 0xc0, 0x97, 0x1e, 0x8e, 0x9b, 0x51, 0x64, 0x8f, 0xa0, 0x27, 0xad, 0x43, 0x79,
|
|
|
|
0x39, 0x0f, 0x3d, 0x69, 0x1d, 0xa2, 0xc8, 0x0e, 0x9f, 0x81, 0x25, 0x4a, 0x1e, 0x59, 0x4e, 0x70,
|
|
|
|
0x25, 0x03, 0xbe, 0xe4, 0x6e, 0x4f, 0xe9, 0x6e, 0xfb, 0x88, 0x23, 0x33, 0x47, 0xfa, 0x89, 0xba,
|
|
|
|
0xb0, 0xa3, 0x48, 0x12, 0x9a, 0x60, 0xd9, 0x0f, 0x9c, 0x03, 0xfa, 0x94, 0x12, 0x5f, 0x5e, 0xc9,
|
|
|
|
0x9d, 0x27, 0xb2, 0xfa, 0x28, 0xc2, 0x66, 0x3d, 0xc4, 0x91, 0x89, 0x11, 0x68, 0x22, 0x0c, 0x4d,
|
|
|
|
0x00, 0xf8, 0x07, 0xbf, 0x39, 0xc8, 0x3b, 0x33, 0x4f, 0x9a, 0x28, 0x06, 0x67, 0xfd, 0xac, 0x87,
|
|
|
|
0xcb, 0x73, 0x62, 0x46, 0x09, 0x5d, 0xf8, 0x67, 0x09, 0x40, 0x1a, 0x78, 0x9e, 0x4d, 0x7a, 0xc4,
|
|
|
|
0x61, 0xd8, 0xe6, 0xad, 0x54, 0x5e, 0xe5, 0xee, 0x7e, 0x3a, 0x2d, 0x6a, 0x39, 0x52, 0xd6, 0x6d,
|
|
|
|
0xbc, 0x37, 0xe7, 0xa1, 0xa8, 0xc0, 0x67, 0x38, 0x69, 0xe7, 0x62, 0xb4, 0x6b, 0x33, 0x27, 0xad,
|
|
|
|
0xf8, 0x1e, 0x36, 0x99, 0x34, 0x61, 0x47, 0x91, 0x24, 0xfc, 0x1c, 0xec, 0x44, 0xb7, 0x54, 0xe4,
|
|
|
|
0xba, 0xec, 0xd8, 0xb2, 0x09, 0x1d, 0x50, 0x46, 0x7a, 0xf2, 0x3a, 0x4f, 0xa6, 0xba, 0x60, 0xee,
|
|
|
|
0xa0, 0x42, 0x14, 0x2a, 0x61, 0xc3, 0x1e, 0x50, 0xa2, 0x22, 0x14, 0xae, 0xd0, 0xb8, 0x0a, 0x1e,
|
|
|
|
0x51, 0x03, 0xdb, 0xe3, 0xd3, 0xd7, 0x75, 0xee, 0xe0, 0xfd, 0xd1, 0x50, 0x51, 0x9a, 0xd3, 0xa1,
|
|
|
|
0x68, 0x96, 0x16, 0xfc, 0x15, 0x90, 0x71, 0x99, 0x9f, 0x0d, 0xee, 0xe7, 0xff, 0xc2, 0xca, 0x56,
|
|
|
|
0xea, 0xa0, 0x94, 0x0d, 0x3d, 0xb0, 0x81, 0xd3, 0xef, 0x05, 0x54, 0xae, 0xf1, 0xb5, 0xfe, 0xc1,
|
|
|
|
0x94, 0x79, 0xc8, 0x3c, 0x31, 0xe8, 0xb2, 0x08, 0xe3, 0x46, 0xc6, 0x40, 0x51, 0x4e, 0x1d, 0x5e,
|
|
|
|
0x01, 0x88, 0xb3, 0xcf, 0x1b, 0x54, 0x86, 0x33, 0x37, 0xb2, 0xdc, 0x9b, 0xc8, 0x24, 0xd5, 0x72,
|
|
|
|
0x26, 0x8a, 0x0a, 0x7c, 0x40, 0x06, 0x6a, 0x38, 0xf3, 0x1c, 0x43, 0xe5, 0x1b, 0xdc, 0xf1, 0x0f,
|
|
|
|
0x67, 0x3b, 0x8e, 0x39, 0xfa, 0xae, 0xf0, 0x5b, 0xcb, 0x5a, 0x28, 0xca, 0x3b, 0x80, 0x8f, 0xc0,
|
|
|
|
0x96, 0x68, 0x7c, 0xea, 0x50, 0x7c, 0x4e, 0xda, 0x03, 0x6a, 0x30, 0x9b, 0xca, 0x9b, 0xbc, 0x76,
|
|
|
|
0xcb, 0xa3, 0xa1, 0xb2, 0x75, 0x50, 0x60, 0x47, 0x85, 0x2c, 0xf8, 0x29, 0xd8, 0x38, 0x77, 0xfd,
|
|
|
|
0x8e, 0x65, 0x9a, 0xc4, 0x89, 0x94, 0xb6, 0xb8, 0xd2, 0x56, 0x18, 0xff, 0xe3, 0x8c, 0x0d, 0xe5,
|
|
|
|
0xd0, 0x90, 0x82, 0x6d, 0xa1, 0xdc, 0xf2, 0x5d, 0xe3, 0xd4, 0x0d, 0x1c, 0x16, 0x6e, 0x17, 0x54,
|
|
|
|
0xde, 0x8e, 0xb7, 0xc8, 0xed, 0x83, 0x22, 0xc0, 0xcb, 0xa1, 0x72, 0xb3, 0x60, 0xbb, 0x4a, 0x81,
|
|
|
|
0x50, 0xb1, 0x36, 0xb4, 0xc1, 0xaa, 0x78, 0x60, 0x3b, 0xb4, 0x31, 0xa5, 0xb2, 0xcc, 0x97, 0xfa,
|
|
|
|
0xbd, 0xe9, 0x85, 0x2d, 0x86, 0x67, 0xd7, 0x3b, 0xbf, 0xf9, 0x25, 0x01, 0x28, 0xa5, 0xae, 0xfe,
|
|
|
|
0x55, 0x02, 0xbb, 0xa5, 0x85, 0x11, 0xde, 0x4b, 0xbd, 0xda, 0xa8, 0x99, 0x57, 0x1b, 0x98, 0x27,
|
|
|
|
0xbe, 0x81, 0x47, 0x9b, 0xaf, 0x24, 0x20, 0x97, 0xed, 0x10, 0xf0, 0xe3, 0x54, 0x07, 0xdf, 0xcb,
|
|
|
|
0x74, 0xb0, 0x96, 0xe3, 0xbd, 0x81, 0xfe, 0x7d, 0x23, 0x81, 0x77, 0xa6, 0xcc, 0x40, 0x5c, 0x90,
|
|
|
|
0x88, 0x99, 0x44, 0x3d, 0xc6, 0xe1, 0x52, 0x96, 0x78, 0x1e, 0x4d, 0x0a, 0x52, 0x01, 0x06, 0x95,
|
|
|
|
0xb2, 0xe1, 0x53, 0x70, 0x43, 0x54, 0xc3, 0xac, 0x8d, 0x9f, 0xdc, 0x97, 0xf5, 0x77, 0x46, 0x43,
|
|
|
|
0xe5, 0x46, 0xb3, 0x18, 0x82, 0xca, 0xb8, 0xea, 0xdf, 0x25, 0xb0, 0x53, 0xbc, 0xe5, 0xc3, 0x3b,
|
|
|
|
0xa9, 0x70, 0x2b, 0x99, 0x70, 0x5f, 0xcf, 0xb0, 0x44, 0xb0, 0x7f, 0x07, 0xd6, 0xc5, 0xc1, 0x20,
|
|
|
|
0xfd, 0x08, 0x99, 0x0a, 0x7a, 0xb8, 0x44, 0xc2, 0x33, 0xbd, 0x90, 0x88, 0xd2, 0x97, 0xdf, 0xf7,
|
|
|
|
0xd3, 0x6d, 0x28, 0xa3, 0xa6, 0xfe, 0x43, 0x02, 0xef, 0xcd, 0xdc, 0x6c, 0xa1, 0x9e, 0xea, 0xba,
|
|
|
|
0x96, 0xe9, 0x7a, 0xbd, 0x5c, 0xe0, 0xcd, 0xbc, 0x45, 0xea, 0xbf, 0x78, 0xfe, 0xa2, 0x3e, 0xf7,
|
|
|
|
0xed, 0x8b, 0xfa, 0xdc, 0x77, 0x2f, 0xea, 0x73, 0x7f, 0x1c, 0xd5, 0xa5, 0xe7, 0xa3, 0xba, 0xf4,
|
|
|
|
0xed, 0xa8, 0x2e, 0x7d, 0x37, 0xaa, 0x4b, 0xff, 0x19, 0xd5, 0xa5, 0xbf, 0xfc, 0xb7, 0x3e, 0xf7,
|
|
|
|
0x9b, 0xdd, 0xd2, 0xff, 0x20, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0xec, 0x71, 0xd7, 0x62, 0xb8,
|
|
|
|
0x18, 0x00, 0x00,
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
|
|
|
|
2019-04-03 07:57:13 +00:00
|
|
|
func (m *AllowedCSIDriver) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-04-03 07:57:13 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AllowedCSIDriver) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AllowedCSIDriver) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-04-03 07:57:13 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= len(m.Name)
|
|
|
|
copy(dAtA[i:], m.Name)
|
2019-04-03 07:57:13 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-04-03 07:57:13 +00:00
|
|
|
}
|
|
|
|
|
2018-12-19 14:29:25 +00:00
|
|
|
func (m *AllowedFlexVolume) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AllowedFlexVolume) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AllowedFlexVolume) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= len(m.Driver)
|
|
|
|
copy(dAtA[i:], m.Driver)
|
2018-12-19 14:29:25 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver)))
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AllowedHostPath) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AllowedHostPath) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AllowedHostPath) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
2019-01-15 16:20:41 +00:00
|
|
|
if m.ReadOnly {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i -= len(m.PathPrefix)
|
|
|
|
copy(dAtA[i:], m.PathPrefix)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.PathPrefix)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Eviction) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Eviction) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Eviction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.DeleteOptions != nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
|
|
|
size, err := m.DeleteOptions.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
2018-12-19 14:29:25 +00:00
|
|
|
dAtA[i] = 0x12
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FSGroupStrategyOptions) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FSGroupStrategyOptions) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FSGroupStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Ranges) > 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= len(m.Rule)
|
|
|
|
copy(dAtA[i:], m.Rule)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HostPortRange) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HostPortRange) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HostPortRange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = l
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Max))
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Min))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IDRange) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IDRange) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IDRange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Max))
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Min))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudget) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudget) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudget) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
|
|
|
size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
2018-12-19 14:29:25 +00:00
|
|
|
dAtA[i] = 0x1a
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
|
|
|
size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetList) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Items) > 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
|
|
|
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetSpec) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-01-14 10:38:55 +00:00
|
|
|
if m.MaxUnavailable != nil {
|
|
|
|
{
|
|
|
|
size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if m.Selector != nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
|
|
|
size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
if m.MinAvailable != nil {
|
|
|
|
{
|
|
|
|
size, err := m.MinAvailable.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetStatus) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-06-25 04:59:51 +00:00
|
|
|
if len(m.Conditions) > 0 {
|
|
|
|
for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x3a
|
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ExpectedPods))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x30
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredHealthy))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x28
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentHealthy))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x20
|
2020-04-14 07:04:33 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.DisruptionsAllowed))
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x18
|
2018-12-19 14:29:25 +00:00
|
|
|
if len(m.DisruptedPods) > 0 {
|
|
|
|
keysForDisruptedPods := make([]string, 0, len(m.DisruptedPods))
|
|
|
|
for k := range m.DisruptedPods {
|
|
|
|
keysForDisruptedPods = append(keysForDisruptedPods, string(k))
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForDisruptedPods)
|
2020-01-14 10:38:55 +00:00
|
|
|
for iNdEx := len(keysForDisruptedPods) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
v := m.DisruptedPods[string(keysForDisruptedPods[iNdEx])]
|
|
|
|
baseI := i
|
|
|
|
{
|
|
|
|
size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
2018-12-19 14:29:25 +00:00
|
|
|
dAtA[i] = 0x12
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= len(keysForDisruptedPods[iNdEx])
|
|
|
|
copy(dAtA[i:], keysForDisruptedPods[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(keysForDisruptedPods[iNdEx])))
|
|
|
|
i--
|
2018-12-19 14:29:25 +00:00
|
|
|
dAtA[i] = 0xa
|
2020-01-14 10:38:55 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(baseI-i))
|
|
|
|
i--
|
2018-12-19 14:29:25 +00:00
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicy) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicy) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
|
|
|
size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
2018-12-19 14:29:25 +00:00
|
|
|
dAtA[i] = 0x12
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicyList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicyList) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Items) > 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicySpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicySpec) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-01-14 10:38:55 +00:00
|
|
|
if m.RuntimeClass != nil {
|
|
|
|
{
|
|
|
|
size, err := m.RuntimeClass.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xc2
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
if len(m.AllowedCSIDrivers) > 0 {
|
|
|
|
for iNdEx := len(m.AllowedCSIDrivers) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.AllowedCSIDrivers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xba
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
if m.RunAsGroup != nil {
|
|
|
|
{
|
|
|
|
size, err := m.RunAsGroup.MarshalToSizedBuffer(dAtA[:i])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xb2
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
if len(m.AllowedProcMountTypes) > 0 {
|
|
|
|
for iNdEx := len(m.AllowedProcMountTypes) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
i -= len(m.AllowedProcMountTypes[iNdEx])
|
|
|
|
copy(dAtA[i:], m.AllowedProcMountTypes[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedProcMountTypes[iNdEx])))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xaa
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
if len(m.ForbiddenSysctls) > 0 {
|
|
|
|
for iNdEx := len(m.ForbiddenSysctls) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
i -= len(m.ForbiddenSysctls[iNdEx])
|
|
|
|
copy(dAtA[i:], m.ForbiddenSysctls[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.ForbiddenSysctls[iNdEx])))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa2
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
if len(m.AllowedUnsafeSysctls) > 0 {
|
|
|
|
for iNdEx := len(m.AllowedUnsafeSysctls) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
i -= len(m.AllowedUnsafeSysctls[iNdEx])
|
|
|
|
copy(dAtA[i:], m.AllowedUnsafeSysctls[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedUnsafeSysctls[iNdEx])))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x9a
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
if len(m.AllowedFlexVolumes) > 0 {
|
|
|
|
for iNdEx := len(m.AllowedFlexVolumes) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.AllowedFlexVolumes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x92
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
if len(m.AllowedHostPaths) > 0 {
|
|
|
|
for iNdEx := len(m.AllowedHostPaths) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.AllowedHostPaths[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8a
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
if m.AllowPrivilegeEscalation != nil {
|
|
|
|
i--
|
|
|
|
if *m.AllowPrivilegeEscalation {
|
2018-12-19 14:29:25 +00:00
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
2018-12-19 14:29:25 +00:00
|
|
|
dAtA[i] = 0x1
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x80
|
|
|
|
}
|
|
|
|
if m.DefaultAllowPrivilegeEscalation != nil {
|
|
|
|
i--
|
|
|
|
if *m.DefaultAllowPrivilegeEscalation {
|
2018-12-19 14:29:25 +00:00
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x78
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
if m.ReadOnlyRootFilesystem {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x70
|
|
|
|
{
|
|
|
|
size, err := m.FSGroup.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x6a
|
|
|
|
{
|
|
|
|
size, err := m.SupplementalGroups.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x62
|
|
|
|
{
|
|
|
|
size, err := m.RunAsUser.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2019-01-15 16:20:41 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-15 16:20:41 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x5a
|
|
|
|
{
|
|
|
|
size, err := m.SELinux.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2019-01-15 16:20:41 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-15 16:20:41 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x52
|
|
|
|
i--
|
|
|
|
if m.HostIPC {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x48
|
|
|
|
i--
|
|
|
|
if m.HostPID {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x40
|
|
|
|
if len(m.HostPorts) > 0 {
|
|
|
|
for iNdEx := len(m.HostPorts) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.HostPorts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-15 16:20:41 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x3a
|
2019-01-15 16:20:41 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
if m.HostNetwork {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x30
|
|
|
|
if len(m.Volumes) > 0 {
|
|
|
|
for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
i -= len(m.Volumes[iNdEx])
|
|
|
|
copy(dAtA[i:], m.Volumes[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Volumes[iNdEx])))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x2a
|
2019-01-15 16:20:41 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
if len(m.AllowedCapabilities) > 0 {
|
|
|
|
for iNdEx := len(m.AllowedCapabilities) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
i -= len(m.AllowedCapabilities[iNdEx])
|
|
|
|
copy(dAtA[i:], m.AllowedCapabilities[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedCapabilities[iNdEx])))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x22
|
2019-04-03 07:57:13 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
if len(m.RequiredDropCapabilities) > 0 {
|
|
|
|
for iNdEx := len(m.RequiredDropCapabilities) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
i -= len(m.RequiredDropCapabilities[iNdEx])
|
|
|
|
copy(dAtA[i:], m.RequiredDropCapabilities[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.RequiredDropCapabilities[iNdEx])))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.DefaultAddCapabilities) > 0 {
|
|
|
|
for iNdEx := len(m.DefaultAddCapabilities) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
i -= len(m.DefaultAddCapabilities[iNdEx])
|
|
|
|
copy(dAtA[i:], m.DefaultAddCapabilities[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.DefaultAddCapabilities[iNdEx])))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2019-06-24 09:08:09 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
if m.Privileged {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-15 16:20:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RunAsGroupStrategyOptions) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-15 16:20:41 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RunAsGroupStrategyOptions) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RunAsGroupStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-15 16:20:41 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Ranges) > 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-15 16:20:41 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2019-01-15 16:20:41 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= len(m.Rule)
|
|
|
|
copy(dAtA[i:], m.Rule)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RunAsUserStrategyOptions) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RunAsUserStrategyOptions) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RunAsUserStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Ranges) > 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= len(m.Rule)
|
|
|
|
copy(dAtA[i:], m.Rule)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2019-06-24 09:08:09 +00:00
|
|
|
func (m *RuntimeClassStrategyOptions) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-06-24 09:08:09 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RuntimeClassStrategyOptions) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RuntimeClassStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-06-24 09:08:09 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-01-14 10:38:55 +00:00
|
|
|
if m.DefaultRuntimeClassName != nil {
|
|
|
|
i -= len(*m.DefaultRuntimeClassName)
|
|
|
|
copy(dAtA[i:], *m.DefaultRuntimeClassName)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.DefaultRuntimeClassName)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
2019-06-24 09:08:09 +00:00
|
|
|
if len(m.AllowedRuntimeClassNames) > 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
for iNdEx := len(m.AllowedRuntimeClassNames) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
i -= len(m.AllowedRuntimeClassNames[iNdEx])
|
|
|
|
copy(dAtA[i:], m.AllowedRuntimeClassNames[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedRuntimeClassNames[iNdEx])))
|
|
|
|
i--
|
2019-06-24 09:08:09 +00:00
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
return len(dAtA) - i, nil
|
2019-06-24 09:08:09 +00:00
|
|
|
}
|
|
|
|
|
2018-12-19 14:29:25 +00:00
|
|
|
func (m *SELinuxStrategyOptions) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SELinuxStrategyOptions) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SELinuxStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.SELinuxOptions != nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
|
|
|
size, err := m.SELinuxOptions.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= len(m.Rule)
|
|
|
|
copy(dAtA[i:], m.Rule)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SupplementalGroupsStrategyOptions) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SupplementalGroupsStrategyOptions) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SupplementalGroupsStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Ranges) > 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= len(m.Rule)
|
|
|
|
copy(dAtA[i:], m.Rule)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
|
2020-01-14 10:38:55 +00:00
|
|
|
offset -= sovGenerated(v)
|
|
|
|
base := offset
|
2018-12-19 14:29:25 +00:00
|
|
|
for v >= 1<<7 {
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
|
|
|
dAtA[offset] = uint8(v)
|
2020-01-14 10:38:55 +00:00
|
|
|
return base
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2019-04-03 07:57:13 +00:00
|
|
|
func (m *AllowedCSIDriver) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-04-03 07:57:13 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Name)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2018-12-19 14:29:25 +00:00
|
|
|
func (m *AllowedFlexVolume) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Driver)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AllowedHostPath) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.PathPrefix)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
2019-01-15 16:20:41 +00:00
|
|
|
n += 2
|
2018-12-19 14:29:25 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Eviction) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.DeleteOptions != nil {
|
|
|
|
l = m.DeleteOptions.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FSGroupStrategyOptions) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Rule)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Ranges) > 0 {
|
|
|
|
for _, e := range m.Ranges {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HostPortRange) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
n += 1 + sovGenerated(uint64(m.Min))
|
|
|
|
n += 1 + sovGenerated(uint64(m.Max))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IDRange) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
n += 1 + sovGenerated(uint64(m.Min))
|
|
|
|
n += 1 + sovGenerated(uint64(m.Max))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudget) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Status.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetList) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ListMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetSpec) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.MinAvailable != nil {
|
|
|
|
l = m.MinAvailable.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Selector != nil {
|
|
|
|
l = m.Selector.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.MaxUnavailable != nil {
|
|
|
|
l = m.MaxUnavailable.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodDisruptionBudgetStatus) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
n += 1 + sovGenerated(uint64(m.ObservedGeneration))
|
|
|
|
if len(m.DisruptedPods) > 0 {
|
|
|
|
for k, v := range m.DisruptedPods {
|
|
|
|
_ = k
|
|
|
|
_ = v
|
|
|
|
l = v.Size()
|
|
|
|
mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
|
|
|
|
n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
|
|
|
|
}
|
|
|
|
}
|
2020-04-14 07:04:33 +00:00
|
|
|
n += 1 + sovGenerated(uint64(m.DisruptionsAllowed))
|
2018-12-19 14:29:25 +00:00
|
|
|
n += 1 + sovGenerated(uint64(m.CurrentHealthy))
|
|
|
|
n += 1 + sovGenerated(uint64(m.DesiredHealthy))
|
|
|
|
n += 1 + sovGenerated(uint64(m.ExpectedPods))
|
2021-06-25 04:59:51 +00:00
|
|
|
if len(m.Conditions) > 0 {
|
|
|
|
for _, e := range m.Conditions {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicy) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicyList) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ListMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PodSecurityPolicySpec) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
n += 2
|
|
|
|
if len(m.DefaultAddCapabilities) > 0 {
|
|
|
|
for _, s := range m.DefaultAddCapabilities {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.RequiredDropCapabilities) > 0 {
|
|
|
|
for _, s := range m.RequiredDropCapabilities {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.AllowedCapabilities) > 0 {
|
|
|
|
for _, s := range m.AllowedCapabilities {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Volumes) > 0 {
|
|
|
|
for _, s := range m.Volumes {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
n += 2
|
|
|
|
if len(m.HostPorts) > 0 {
|
|
|
|
for _, e := range m.HostPorts {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
n += 2
|
|
|
|
n += 2
|
|
|
|
l = m.SELinux.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.RunAsUser.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.SupplementalGroups.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.FSGroup.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
n += 2
|
|
|
|
if m.DefaultAllowPrivilegeEscalation != nil {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
if m.AllowPrivilegeEscalation != nil {
|
|
|
|
n += 3
|
|
|
|
}
|
|
|
|
if len(m.AllowedHostPaths) > 0 {
|
|
|
|
for _, e := range m.AllowedHostPaths {
|
|
|
|
l = e.Size()
|
|
|
|
n += 2 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.AllowedFlexVolumes) > 0 {
|
|
|
|
for _, e := range m.AllowedFlexVolumes {
|
|
|
|
l = e.Size()
|
|
|
|
n += 2 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
if len(m.AllowedUnsafeSysctls) > 0 {
|
|
|
|
for _, s := range m.AllowedUnsafeSysctls {
|
|
|
|
l = len(s)
|
|
|
|
n += 2 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.ForbiddenSysctls) > 0 {
|
|
|
|
for _, s := range m.ForbiddenSysctls {
|
|
|
|
l = len(s)
|
|
|
|
n += 2 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.AllowedProcMountTypes) > 0 {
|
|
|
|
for _, s := range m.AllowedProcMountTypes {
|
|
|
|
l = len(s)
|
|
|
|
n += 2 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.RunAsGroup != nil {
|
|
|
|
l = m.RunAsGroup.Size()
|
|
|
|
n += 2 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2019-04-03 07:57:13 +00:00
|
|
|
if len(m.AllowedCSIDrivers) > 0 {
|
|
|
|
for _, e := range m.AllowedCSIDrivers {
|
|
|
|
l = e.Size()
|
|
|
|
n += 2 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
2019-06-24 09:08:09 +00:00
|
|
|
if m.RuntimeClass != nil {
|
|
|
|
l = m.RuntimeClass.Size()
|
|
|
|
n += 2 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RunAsGroupStrategyOptions) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Rule)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Ranges) > 0 {
|
|
|
|
for _, e := range m.Ranges {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RunAsUserStrategyOptions) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Rule)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Ranges) > 0 {
|
|
|
|
for _, e := range m.Ranges {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2019-06-24 09:08:09 +00:00
|
|
|
func (m *RuntimeClassStrategyOptions) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-06-24 09:08:09 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.AllowedRuntimeClassNames) > 0 {
|
|
|
|
for _, s := range m.AllowedRuntimeClassNames {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.DefaultRuntimeClassName != nil {
|
|
|
|
l = len(*m.DefaultRuntimeClassName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2018-12-19 14:29:25 +00:00
|
|
|
func (m *SELinuxStrategyOptions) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Rule)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.SELinuxOptions != nil {
|
|
|
|
l = m.SELinuxOptions.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SupplementalGroupsStrategyOptions) Size() (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Rule)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Ranges) > 0 {
|
|
|
|
for _, e := range m.Ranges {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func sovGenerated(x uint64) (n int) {
|
2020-01-14 10:38:55 +00:00
|
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
func sozGenerated(x uint64) (n int) {
|
|
|
|
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
2019-04-03 07:57:13 +00:00
|
|
|
func (this *AllowedCSIDriver) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&AllowedCSIDriver{`,
|
|
|
|
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
func (this *AllowedFlexVolume) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&AllowedFlexVolume{`,
|
|
|
|
`Driver:` + fmt.Sprintf("%v", this.Driver) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *AllowedHostPath) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&AllowedHostPath{`,
|
|
|
|
`PathPrefix:` + fmt.Sprintf("%v", this.PathPrefix) + `,`,
|
2019-01-15 16:20:41 +00:00
|
|
|
`ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *Eviction) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&Eviction{`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`DeleteOptions:` + strings.Replace(fmt.Sprintf("%v", this.DeleteOptions), "DeleteOptions", "v1.DeleteOptions", 1) + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *FSGroupStrategyOptions) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
repeatedStringForRanges := "[]IDRange{"
|
|
|
|
for _, f := range this.Ranges {
|
|
|
|
repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForRanges += "}"
|
2018-12-19 14:29:25 +00:00
|
|
|
s := strings.Join([]string{`&FSGroupStrategyOptions{`,
|
|
|
|
`Rule:` + fmt.Sprintf("%v", this.Rule) + `,`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`Ranges:` + repeatedStringForRanges + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *HostPortRange) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&HostPortRange{`,
|
|
|
|
`Min:` + fmt.Sprintf("%v", this.Min) + `,`,
|
|
|
|
`Max:` + fmt.Sprintf("%v", this.Max) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *IDRange) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&IDRange{`,
|
|
|
|
`Min:` + fmt.Sprintf("%v", this.Min) + `,`,
|
|
|
|
`Max:` + fmt.Sprintf("%v", this.Max) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *PodDisruptionBudget) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&PodDisruptionBudget{`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodDisruptionBudgetSpec", "PodDisruptionBudgetSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodDisruptionBudgetStatus", "PodDisruptionBudgetStatus", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *PodDisruptionBudgetList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
repeatedStringForItems := "[]PodDisruptionBudget{"
|
|
|
|
for _, f := range this.Items {
|
|
|
|
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodDisruptionBudget", "PodDisruptionBudget", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForItems += "}"
|
2018-12-19 14:29:25 +00:00
|
|
|
s := strings.Join([]string{`&PodDisruptionBudgetList{`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + repeatedStringForItems + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *PodDisruptionBudgetSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&PodDisruptionBudgetSpec{`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`MinAvailable:` + strings.Replace(fmt.Sprintf("%v", this.MinAvailable), "IntOrString", "intstr.IntOrString", 1) + `,`,
|
|
|
|
`Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
|
|
|
|
`MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *PodDisruptionBudgetStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-06-25 04:59:51 +00:00
|
|
|
repeatedStringForConditions := "[]Condition{"
|
|
|
|
for _, f := range this.Conditions {
|
|
|
|
repeatedStringForConditions += fmt.Sprintf("%v", f) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForConditions += "}"
|
2018-12-19 14:29:25 +00:00
|
|
|
keysForDisruptedPods := make([]string, 0, len(this.DisruptedPods))
|
|
|
|
for k := range this.DisruptedPods {
|
|
|
|
keysForDisruptedPods = append(keysForDisruptedPods, k)
|
|
|
|
}
|
|
|
|
github_com_gogo_protobuf_sortkeys.Strings(keysForDisruptedPods)
|
2020-01-14 10:38:55 +00:00
|
|
|
mapStringForDisruptedPods := "map[string]v1.Time{"
|
2018-12-19 14:29:25 +00:00
|
|
|
for _, k := range keysForDisruptedPods {
|
|
|
|
mapStringForDisruptedPods += fmt.Sprintf("%v: %v,", k, this.DisruptedPods[k])
|
|
|
|
}
|
|
|
|
mapStringForDisruptedPods += "}"
|
|
|
|
s := strings.Join([]string{`&PodDisruptionBudgetStatus{`,
|
|
|
|
`ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
|
|
|
|
`DisruptedPods:` + mapStringForDisruptedPods + `,`,
|
2020-04-14 07:04:33 +00:00
|
|
|
`DisruptionsAllowed:` + fmt.Sprintf("%v", this.DisruptionsAllowed) + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`CurrentHealthy:` + fmt.Sprintf("%v", this.CurrentHealthy) + `,`,
|
|
|
|
`DesiredHealthy:` + fmt.Sprintf("%v", this.DesiredHealthy) + `,`,
|
|
|
|
`ExpectedPods:` + fmt.Sprintf("%v", this.ExpectedPods) + `,`,
|
2021-06-25 04:59:51 +00:00
|
|
|
`Conditions:` + repeatedStringForConditions + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *PodSecurityPolicy) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&PodSecurityPolicy{`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSecurityPolicySpec", "PodSecurityPolicySpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *PodSecurityPolicyList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
repeatedStringForItems := "[]PodSecurityPolicy{"
|
|
|
|
for _, f := range this.Items {
|
|
|
|
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodSecurityPolicy", "PodSecurityPolicy", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForItems += "}"
|
2018-12-19 14:29:25 +00:00
|
|
|
s := strings.Join([]string{`&PodSecurityPolicyList{`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + repeatedStringForItems + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *PodSecurityPolicySpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
repeatedStringForHostPorts := "[]HostPortRange{"
|
|
|
|
for _, f := range this.HostPorts {
|
|
|
|
repeatedStringForHostPorts += strings.Replace(strings.Replace(f.String(), "HostPortRange", "HostPortRange", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForHostPorts += "}"
|
|
|
|
repeatedStringForAllowedHostPaths := "[]AllowedHostPath{"
|
|
|
|
for _, f := range this.AllowedHostPaths {
|
|
|
|
repeatedStringForAllowedHostPaths += strings.Replace(strings.Replace(f.String(), "AllowedHostPath", "AllowedHostPath", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForAllowedHostPaths += "}"
|
|
|
|
repeatedStringForAllowedFlexVolumes := "[]AllowedFlexVolume{"
|
|
|
|
for _, f := range this.AllowedFlexVolumes {
|
|
|
|
repeatedStringForAllowedFlexVolumes += strings.Replace(strings.Replace(f.String(), "AllowedFlexVolume", "AllowedFlexVolume", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForAllowedFlexVolumes += "}"
|
|
|
|
repeatedStringForAllowedCSIDrivers := "[]AllowedCSIDriver{"
|
|
|
|
for _, f := range this.AllowedCSIDrivers {
|
|
|
|
repeatedStringForAllowedCSIDrivers += strings.Replace(strings.Replace(f.String(), "AllowedCSIDriver", "AllowedCSIDriver", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForAllowedCSIDrivers += "}"
|
2018-12-19 14:29:25 +00:00
|
|
|
s := strings.Join([]string{`&PodSecurityPolicySpec{`,
|
|
|
|
`Privileged:` + fmt.Sprintf("%v", this.Privileged) + `,`,
|
|
|
|
`DefaultAddCapabilities:` + fmt.Sprintf("%v", this.DefaultAddCapabilities) + `,`,
|
|
|
|
`RequiredDropCapabilities:` + fmt.Sprintf("%v", this.RequiredDropCapabilities) + `,`,
|
|
|
|
`AllowedCapabilities:` + fmt.Sprintf("%v", this.AllowedCapabilities) + `,`,
|
|
|
|
`Volumes:` + fmt.Sprintf("%v", this.Volumes) + `,`,
|
|
|
|
`HostNetwork:` + fmt.Sprintf("%v", this.HostNetwork) + `,`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`HostPorts:` + repeatedStringForHostPorts + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`HostPID:` + fmt.Sprintf("%v", this.HostPID) + `,`,
|
|
|
|
`HostIPC:` + fmt.Sprintf("%v", this.HostIPC) + `,`,
|
|
|
|
`SELinux:` + strings.Replace(strings.Replace(this.SELinux.String(), "SELinuxStrategyOptions", "SELinuxStrategyOptions", 1), `&`, ``, 1) + `,`,
|
|
|
|
`RunAsUser:` + strings.Replace(strings.Replace(this.RunAsUser.String(), "RunAsUserStrategyOptions", "RunAsUserStrategyOptions", 1), `&`, ``, 1) + `,`,
|
|
|
|
`SupplementalGroups:` + strings.Replace(strings.Replace(this.SupplementalGroups.String(), "SupplementalGroupsStrategyOptions", "SupplementalGroupsStrategyOptions", 1), `&`, ``, 1) + `,`,
|
|
|
|
`FSGroup:` + strings.Replace(strings.Replace(this.FSGroup.String(), "FSGroupStrategyOptions", "FSGroupStrategyOptions", 1), `&`, ``, 1) + `,`,
|
|
|
|
`ReadOnlyRootFilesystem:` + fmt.Sprintf("%v", this.ReadOnlyRootFilesystem) + `,`,
|
|
|
|
`DefaultAllowPrivilegeEscalation:` + valueToStringGenerated(this.DefaultAllowPrivilegeEscalation) + `,`,
|
|
|
|
`AllowPrivilegeEscalation:` + valueToStringGenerated(this.AllowPrivilegeEscalation) + `,`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`AllowedHostPaths:` + repeatedStringForAllowedHostPaths + `,`,
|
|
|
|
`AllowedFlexVolumes:` + repeatedStringForAllowedFlexVolumes + `,`,
|
2019-01-15 16:20:41 +00:00
|
|
|
`AllowedUnsafeSysctls:` + fmt.Sprintf("%v", this.AllowedUnsafeSysctls) + `,`,
|
|
|
|
`ForbiddenSysctls:` + fmt.Sprintf("%v", this.ForbiddenSysctls) + `,`,
|
|
|
|
`AllowedProcMountTypes:` + fmt.Sprintf("%v", this.AllowedProcMountTypes) + `,`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`RunAsGroup:` + strings.Replace(this.RunAsGroup.String(), "RunAsGroupStrategyOptions", "RunAsGroupStrategyOptions", 1) + `,`,
|
|
|
|
`AllowedCSIDrivers:` + repeatedStringForAllowedCSIDrivers + `,`,
|
|
|
|
`RuntimeClass:` + strings.Replace(this.RuntimeClass.String(), "RuntimeClassStrategyOptions", "RuntimeClassStrategyOptions", 1) + `,`,
|
2019-01-15 16:20:41 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *RunAsGroupStrategyOptions) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
repeatedStringForRanges := "[]IDRange{"
|
|
|
|
for _, f := range this.Ranges {
|
|
|
|
repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForRanges += "}"
|
2019-01-15 16:20:41 +00:00
|
|
|
s := strings.Join([]string{`&RunAsGroupStrategyOptions{`,
|
|
|
|
`Rule:` + fmt.Sprintf("%v", this.Rule) + `,`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`Ranges:` + repeatedStringForRanges + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *RunAsUserStrategyOptions) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
repeatedStringForRanges := "[]IDRange{"
|
|
|
|
for _, f := range this.Ranges {
|
|
|
|
repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForRanges += "}"
|
2018-12-19 14:29:25 +00:00
|
|
|
s := strings.Join([]string{`&RunAsUserStrategyOptions{`,
|
|
|
|
`Rule:` + fmt.Sprintf("%v", this.Rule) + `,`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`Ranges:` + repeatedStringForRanges + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2019-06-24 09:08:09 +00:00
|
|
|
func (this *RuntimeClassStrategyOptions) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&RuntimeClassStrategyOptions{`,
|
|
|
|
`AllowedRuntimeClassNames:` + fmt.Sprintf("%v", this.AllowedRuntimeClassNames) + `,`,
|
|
|
|
`DefaultRuntimeClassName:` + valueToStringGenerated(this.DefaultRuntimeClassName) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
func (this *SELinuxStrategyOptions) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&SELinuxStrategyOptions{`,
|
|
|
|
`Rule:` + fmt.Sprintf("%v", this.Rule) + `,`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`SELinuxOptions:` + strings.Replace(fmt.Sprintf("%v", this.SELinuxOptions), "SELinuxOptions", "v11.SELinuxOptions", 1) + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *SupplementalGroupsStrategyOptions) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
repeatedStringForRanges := "[]IDRange{"
|
|
|
|
for _, f := range this.Ranges {
|
|
|
|
repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForRanges += "}"
|
2018-12-19 14:29:25 +00:00
|
|
|
s := strings.Join([]string{`&SupplementalGroupsStrategyOptions{`,
|
|
|
|
`Rule:` + fmt.Sprintf("%v", this.Rule) + `,`,
|
2020-01-14 10:38:55 +00:00
|
|
|
`Ranges:` + repeatedStringForRanges + `,`,
|
2018-12-19 14:29:25 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func valueToStringGenerated(v interface{}) string {
|
|
|
|
rv := reflect.ValueOf(v)
|
|
|
|
if rv.IsNil() {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
pv := reflect.Indirect(rv).Interface()
|
|
|
|
return fmt.Sprintf("*%v", pv)
|
|
|
|
}
|
2019-04-03 07:57:13 +00:00
|
|
|
func (m *AllowedCSIDriver) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-04-03 07:57:13 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: AllowedCSIDriver: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: AllowedCSIDriver: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-04-03 07:57:13 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-04-03 07:57:13 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-04-03 07:57:13 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
func (m *AllowedFlexVolume) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: AllowedFlexVolume: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: AllowedFlexVolume: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Driver = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *AllowedHostPath) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: AllowedHostPath: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: AllowedHostPath: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PathPrefix", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.PathPrefix = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
2019-01-15 16:20:41 +00:00
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
v |= int(b&0x7F) << shift
|
2019-01-15 16:20:41 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.ReadOnly = bool(v != 0)
|
2018-12-19 14:29:25 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *Eviction) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: Eviction: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: Eviction: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DeleteOptions", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.DeleteOptions == nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
m.DeleteOptions = &v1.DeleteOptions{}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if err := m.DeleteOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *FSGroupStrategyOptions) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: FSGroupStrategyOptions: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: FSGroupStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Rule = FSGroupStrategyType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Ranges = append(m.Ranges, IDRange{})
|
|
|
|
if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *HostPortRange) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: HostPortRange: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: HostPortRange: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType)
|
|
|
|
}
|
|
|
|
m.Min = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
m.Min |= int32(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType)
|
|
|
|
}
|
|
|
|
m.Max = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
m.Max |= int32(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *IDRange) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IDRange: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IDRange: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType)
|
|
|
|
}
|
|
|
|
m.Min = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
m.Min |= int64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType)
|
|
|
|
}
|
|
|
|
m.Max = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
m.Max |= int64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudget) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: PodDisruptionBudget: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: PodDisruptionBudget: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetList) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: PodDisruptionBudgetList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: PodDisruptionBudgetList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, PodDisruptionBudget{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetSpec) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: PodDisruptionBudgetSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: PodDisruptionBudgetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MinAvailable", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.MinAvailable == nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
m.MinAvailable = &intstr.IntOrString{}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if err := m.MinAvailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Selector == nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
m.Selector = &v1.LabelSelector{}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.MaxUnavailable == nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
m.MaxUnavailable = &intstr.IntOrString{}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *PodDisruptionBudgetStatus) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: PodDisruptionBudgetStatus: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: PodDisruptionBudgetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
|
|
|
|
}
|
|
|
|
m.ObservedGeneration = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
m.ObservedGeneration |= int64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DisruptedPods", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.DisruptedPods == nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
m.DisruptedPods = make(map[string]v1.Time)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
var mapkey string
|
2020-01-14 10:38:55 +00:00
|
|
|
mapvalue := &v1.Time{}
|
2019-01-15 16:20:41 +00:00
|
|
|
for iNdEx < postIndex {
|
|
|
|
entryPreIndex := iNdEx
|
|
|
|
var wire uint64
|
2018-12-19 14:29:25 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
if fieldNum == 1 {
|
|
|
|
var stringLenmapkey uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLenmapkey |= uint64(b&0x7F) << shift
|
2019-01-15 16:20:41 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
|
|
if intStringLenmapkey < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
2020-01-14 10:38:55 +00:00
|
|
|
if postStringIndexmapkey < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
if postStringIndexmapkey > l {
|
2018-12-19 14:29:25 +00:00
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
|
iNdEx = postStringIndexmapkey
|
|
|
|
} else if fieldNum == 2 {
|
|
|
|
var mapmsglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
mapmsglen |= int(b&0x7F) << shift
|
2019-01-15 16:20:41 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
if mapmsglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postmsgIndex := iNdEx + mapmsglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postmsgIndex < 0 {
|
2019-01-15 16:20:41 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postmsgIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
mapvalue = &v1.Time{}
|
2019-01-15 16:20:41 +00:00
|
|
|
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postmsgIndex
|
|
|
|
} else {
|
|
|
|
iNdEx = entryPreIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-15 16:20:41 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > postIndex {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
m.DisruptedPods[mapkey] = *mapvalue
|
2018-12-19 14:29:25 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
2020-04-14 07:04:33 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DisruptionsAllowed", wireType)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-04-14 07:04:33 +00:00
|
|
|
m.DisruptionsAllowed = 0
|
2018-12-19 14:29:25 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-04-14 07:04:33 +00:00
|
|
|
m.DisruptionsAllowed |= int32(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentHealthy", wireType)
|
|
|
|
}
|
|
|
|
m.CurrentHealthy = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
m.CurrentHealthy |= int32(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 5:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DesiredHealthy", wireType)
|
|
|
|
}
|
|
|
|
m.DesiredHealthy = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
m.DesiredHealthy |= int32(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 6:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPods", wireType)
|
|
|
|
}
|
|
|
|
m.ExpectedPods = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
m.ExpectedPods |= int32(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2021-06-25 04:59:51 +00:00
|
|
|
case 7:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Conditions = append(m.Conditions, v1.Condition{})
|
|
|
|
if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2018-12-19 14:29:25 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicy) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: PodSecurityPolicy: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: PodSecurityPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicyList) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: PodSecurityPolicyList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: PodSecurityPolicyList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, PodSecurityPolicy{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *PodSecurityPolicySpec) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: PodSecurityPolicySpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: PodSecurityPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Privileged", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
v |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Privileged = bool(v != 0)
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DefaultAddCapabilities", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.DefaultAddCapabilities = append(m.DefaultAddCapabilities, k8s_io_api_core_v1.Capability(dAtA[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RequiredDropCapabilities", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.RequiredDropCapabilities = append(m.RequiredDropCapabilities, k8s_io_api_core_v1.Capability(dAtA[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AllowedCapabilities", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.AllowedCapabilities = append(m.AllowedCapabilities, k8s_io_api_core_v1.Capability(dAtA[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Volumes = append(m.Volumes, FSType(dAtA[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 6:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HostNetwork", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
v |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.HostNetwork = bool(v != 0)
|
|
|
|
case 7:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HostPorts", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.HostPorts = append(m.HostPorts, HostPortRange{})
|
|
|
|
if err := m.HostPorts[len(m.HostPorts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 8:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HostPID", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
v |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.HostPID = bool(v != 0)
|
|
|
|
case 9:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HostIPC", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
v |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.HostIPC = bool(v != 0)
|
|
|
|
case 10:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SELinux", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.SELinux.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 11:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RunAsUser", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.RunAsUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 12:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SupplementalGroups", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.SupplementalGroups.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 13:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field FSGroup", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.FSGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 14:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ReadOnlyRootFilesystem", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
v |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.ReadOnlyRootFilesystem = bool(v != 0)
|
|
|
|
case 15:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DefaultAllowPrivilegeEscalation", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
v |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
b := bool(v != 0)
|
|
|
|
m.DefaultAllowPrivilegeEscalation = &b
|
|
|
|
case 16:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AllowPrivilegeEscalation", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
v |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
b := bool(v != 0)
|
|
|
|
m.AllowPrivilegeEscalation = &b
|
|
|
|
case 17:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AllowedHostPaths", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.AllowedHostPaths = append(m.AllowedHostPaths, AllowedHostPath{})
|
|
|
|
if err := m.AllowedHostPaths[len(m.AllowedHostPaths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 18:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AllowedFlexVolumes", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.AllowedFlexVolumes = append(m.AllowedFlexVolumes, AllowedFlexVolume{})
|
|
|
|
if err := m.AllowedFlexVolumes[len(m.AllowedFlexVolumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2019-01-15 16:20:41 +00:00
|
|
|
case 19:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AllowedUnsafeSysctls", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-15 16:20:41 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.AllowedUnsafeSysctls = append(m.AllowedUnsafeSysctls, string(dAtA[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 20:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ForbiddenSysctls", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-15 16:20:41 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.ForbiddenSysctls = append(m.ForbiddenSysctls, string(dAtA[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 21:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AllowedProcMountTypes", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-15 16:20:41 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.AllowedProcMountTypes = append(m.AllowedProcMountTypes, k8s_io_api_core_v1.ProcMountType(dAtA[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 22:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RunAsGroup", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-15 16:20:41 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.RunAsGroup == nil {
|
|
|
|
m.RunAsGroup = &RunAsGroupStrategyOptions{}
|
|
|
|
}
|
|
|
|
if err := m.RunAsGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2019-04-03 07:57:13 +00:00
|
|
|
case 23:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AllowedCSIDrivers", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-04-03 07:57:13 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-04-03 07:57:13 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.AllowedCSIDrivers = append(m.AllowedCSIDrivers, AllowedCSIDriver{})
|
|
|
|
if err := m.AllowedCSIDrivers[len(m.AllowedCSIDrivers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2019-06-24 09:08:09 +00:00
|
|
|
case 24:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RuntimeClass", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-06-24 09:08:09 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-06-24 09:08:09 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.RuntimeClass == nil {
|
|
|
|
m.RuntimeClass = &RuntimeClassStrategyOptions{}
|
|
|
|
}
|
|
|
|
if err := m.RuntimeClass.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2019-01-15 16:20:41 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *RunAsGroupStrategyOptions) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-15 16:20:41 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: RunAsGroupStrategyOptions: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: RunAsGroupStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-15 16:20:41 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Rule = RunAsGroupStrategy(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-15 16:20:41 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-15 16:20:41 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Ranges = append(m.Ranges, IDRange{})
|
|
|
|
if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2018-12-19 14:29:25 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *RunAsUserStrategyOptions) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: RunAsUserStrategyOptions: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: RunAsUserStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Rule = RunAsUserStrategy(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Ranges = append(m.Ranges, IDRange{})
|
|
|
|
if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2019-06-24 09:08:09 +00:00
|
|
|
func (m *RuntimeClassStrategyOptions) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-06-24 09:08:09 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: RuntimeClassStrategyOptions: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: RuntimeClassStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AllowedRuntimeClassNames", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-06-24 09:08:09 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-06-24 09:08:09 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.AllowedRuntimeClassNames = append(m.AllowedRuntimeClassNames, string(dAtA[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DefaultRuntimeClassName", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-06-24 09:08:09 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-06-24 09:08:09 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
s := string(dAtA[iNdEx:postIndex])
|
|
|
|
m.DefaultRuntimeClassName = &s
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-06-24 09:08:09 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
func (m *SELinuxStrategyOptions) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: SELinuxStrategyOptions: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: SELinuxStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Rule = SELinuxStrategy(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SELinuxOptions", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.SELinuxOptions == nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
m.SELinuxOptions = &v11.SELinuxOptions{}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if err := m.SELinuxOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *SupplementalGroupsStrategyOptions) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: SupplementalGroupsStrategyOptions: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: SupplementalGroupsStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Rule = SupplementalGroupsStrategyType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Ranges = append(m.Ranges, IDRange{})
|
|
|
|
if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func skipGenerated(dAtA []byte) (n int, err error) {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
2020-04-14 07:04:33 +00:00
|
|
|
depth := 0
|
2018-12-19 14:29:25 +00:00
|
|
|
for iNdEx < l {
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
switch wireType {
|
|
|
|
case 0:
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx++
|
|
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 1:
|
|
|
|
iNdEx += 8
|
|
|
|
case 2:
|
|
|
|
var length int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
length |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if length < 0 {
|
|
|
|
return 0, ErrInvalidLengthGenerated
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
iNdEx += length
|
2018-12-19 14:29:25 +00:00
|
|
|
case 3:
|
2020-04-14 07:04:33 +00:00
|
|
|
depth++
|
2018-12-19 14:29:25 +00:00
|
|
|
case 4:
|
2020-04-14 07:04:33 +00:00
|
|
|
if depth == 0 {
|
|
|
|
return 0, ErrUnexpectedEndOfGroupGenerated
|
|
|
|
}
|
|
|
|
depth--
|
2018-12-19 14:29:25 +00:00
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
2020-04-14 07:04:33 +00:00
|
|
|
if iNdEx < 0 {
|
|
|
|
return 0, ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if depth == 0 {
|
|
|
|
return iNdEx, nil
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-04-14 07:04:33 +00:00
|
|
|
return 0, io.ErrUnexpectedEOF
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2020-04-14 07:04:33 +00:00
|
|
|
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
|
|
|
ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
|
2018-12-19 14:29:25 +00:00
|
|
|
)
|