mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-14 10:20:20 +00:00
1b23d78113
Updated kubernetes packages to latest release. resizefs package has been included into k8s.io/mount-utils package. updated code to use the same. Updates: #1968 Signed-off-by: Rakshith R <rar@redhat.com>
115 lines
5.4 KiB
Go
115 lines
5.4 KiB
Go
/*
|
|
Copyright The Kubernetes Authors.
|
|
|
|
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.
|
|
*/
|
|
|
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
package v1
|
|
|
|
import (
|
|
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
|
)
|
|
|
|
// EndpointApplyConfiguration represents an declarative configuration of the Endpoint type for use
|
|
// with apply.
|
|
type EndpointApplyConfiguration struct {
|
|
Addresses []string `json:"addresses,omitempty"`
|
|
Conditions *EndpointConditionsApplyConfiguration `json:"conditions,omitempty"`
|
|
Hostname *string `json:"hostname,omitempty"`
|
|
TargetRef *corev1.ObjectReferenceApplyConfiguration `json:"targetRef,omitempty"`
|
|
DeprecatedTopology map[string]string `json:"deprecatedTopology,omitempty"`
|
|
NodeName *string `json:"nodeName,omitempty"`
|
|
Zone *string `json:"zone,omitempty"`
|
|
Hints *EndpointHintsApplyConfiguration `json:"hints,omitempty"`
|
|
}
|
|
|
|
// EndpointApplyConfiguration constructs an declarative configuration of the Endpoint type for use with
|
|
// apply.
|
|
func Endpoint() *EndpointApplyConfiguration {
|
|
return &EndpointApplyConfiguration{}
|
|
}
|
|
|
|
// WithAddresses adds the given value to the Addresses field in the declarative configuration
|
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
|
// If called multiple times, values provided by each call will be appended to the Addresses field.
|
|
func (b *EndpointApplyConfiguration) WithAddresses(values ...string) *EndpointApplyConfiguration {
|
|
for i := range values {
|
|
b.Addresses = append(b.Addresses, values[i])
|
|
}
|
|
return b
|
|
}
|
|
|
|
// WithConditions sets the Conditions field in the declarative configuration to the given value
|
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
|
// If called multiple times, the Conditions field is set to the value of the last call.
|
|
func (b *EndpointApplyConfiguration) WithConditions(value *EndpointConditionsApplyConfiguration) *EndpointApplyConfiguration {
|
|
b.Conditions = value
|
|
return b
|
|
}
|
|
|
|
// WithHostname sets the Hostname field in the declarative configuration to the given value
|
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
|
// If called multiple times, the Hostname field is set to the value of the last call.
|
|
func (b *EndpointApplyConfiguration) WithHostname(value string) *EndpointApplyConfiguration {
|
|
b.Hostname = &value
|
|
return b
|
|
}
|
|
|
|
// WithTargetRef sets the TargetRef field in the declarative configuration to the given value
|
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
|
// If called multiple times, the TargetRef field is set to the value of the last call.
|
|
func (b *EndpointApplyConfiguration) WithTargetRef(value *corev1.ObjectReferenceApplyConfiguration) *EndpointApplyConfiguration {
|
|
b.TargetRef = value
|
|
return b
|
|
}
|
|
|
|
// WithDeprecatedTopology puts the entries into the DeprecatedTopology field in the declarative configuration
|
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
|
// If called multiple times, the entries provided by each call will be put on the DeprecatedTopology field,
|
|
// overwriting an existing map entries in DeprecatedTopology field with the same key.
|
|
func (b *EndpointApplyConfiguration) WithDeprecatedTopology(entries map[string]string) *EndpointApplyConfiguration {
|
|
if b.DeprecatedTopology == nil && len(entries) > 0 {
|
|
b.DeprecatedTopology = make(map[string]string, len(entries))
|
|
}
|
|
for k, v := range entries {
|
|
b.DeprecatedTopology[k] = v
|
|
}
|
|
return b
|
|
}
|
|
|
|
// WithNodeName sets the NodeName field in the declarative configuration to the given value
|
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
|
// If called multiple times, the NodeName field is set to the value of the last call.
|
|
func (b *EndpointApplyConfiguration) WithNodeName(value string) *EndpointApplyConfiguration {
|
|
b.NodeName = &value
|
|
return b
|
|
}
|
|
|
|
// WithZone sets the Zone field in the declarative configuration to the given value
|
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
|
// If called multiple times, the Zone field is set to the value of the last call.
|
|
func (b *EndpointApplyConfiguration) WithZone(value string) *EndpointApplyConfiguration {
|
|
b.Zone = &value
|
|
return b
|
|
}
|
|
|
|
// WithHints sets the Hints field in the declarative configuration to the given value
|
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
|
// If called multiple times, the Hints field is set to the value of the last call.
|
|
func (b *EndpointApplyConfiguration) WithHints(value *EndpointHintsApplyConfiguration) *EndpointApplyConfiguration {
|
|
b.Hints = value
|
|
return b
|
|
}
|