commit
af2f704fa8
|
@ -22,8 +22,6 @@ type ComponentAccessor interface {
|
|||
DNSPolicy() corev1.DNSPolicy
|
||||
BuildPodSpec() corev1.PodSpec
|
||||
Env() []corev1.EnvVar
|
||||
AdditionalContainers() []corev1.Container
|
||||
AdditionalVolumes() []corev1.Volume
|
||||
TerminationGracePeriodSeconds() *int64
|
||||
StatefulSetUpdateStrategy() appsv1.StatefulSetUpdateStrategyType
|
||||
}
|
||||
|
@ -172,14 +170,6 @@ func (a *componentAccessorImpl) Env() []corev1.EnvVar {
|
|||
return a.ComponentSpec.Env
|
||||
}
|
||||
|
||||
func (a *componentAccessorImpl) AdditionalContainers() []corev1.Container {
|
||||
return a.ComponentSpec.AdditionalContainers
|
||||
}
|
||||
|
||||
func (a *componentAccessorImpl) AdditionalVolumes() []corev1.Volume {
|
||||
return a.ComponentSpec.AdditionalVolumes
|
||||
}
|
||||
|
||||
func (a *componentAccessorImpl) TerminationGracePeriodSeconds() *int64 {
|
||||
return a.ComponentSpec.TerminationGracePeriodSeconds
|
||||
}
|
||||
|
|
|
@ -211,13 +211,6 @@ type ComponentSpec struct {
|
|||
// - POD_NAME
|
||||
Env []corev1.EnvVar `json:"env,omitempty"`
|
||||
|
||||
// Additional containers of the component.
|
||||
AdditionalContainers []corev1.Container `json:"additionalContainers,omitempty"`
|
||||
|
||||
// Additional volumes of component pod. Currently this only
|
||||
// supports additional volume mounts for sidecar containers.
|
||||
AdditionalVolumes []corev1.Volume `json:"additionalVolumes,omitempty"`
|
||||
|
||||
// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
|
||||
// Value must be non-negative integer. The value zero indicates delete immediately.
|
||||
// If this value is nil, the default grace period will be used instead.
|
||||
|
|
|
@ -91,20 +91,6 @@ func (in *ComponentSpec) DeepCopyInto(out *ComponentSpec) {
|
|||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.AdditionalContainers != nil {
|
||||
in, out := &in.AdditionalContainers, &out.AdditionalContainers
|
||||
*out = make([]corev1.Container, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.AdditionalVolumes != nil {
|
||||
in, out := &in.AdditionalVolumes, &out.AdditionalVolumes
|
||||
*out = make([]corev1.Volume, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.TerminationGracePeriodSeconds != nil {
|
||||
in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds
|
||||
*out = new(int64)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue