mirror of https://github.com/kubernetes/kops.git
Define "ManageStorageClasses" cloud config field
This commit is contained in:
parent
6fc77c6128
commit
f63a5d3911
|
|
@ -277,6 +277,11 @@ spec:
|
||||||
description: GCEServiceAccount specifies the service account with
|
description: GCEServiceAccount specifies the service account with
|
||||||
which the GCE VM runs
|
which the GCE VM runs
|
||||||
type: string
|
type: string
|
||||||
|
manageStorageClasses:
|
||||||
|
description: ManageStorageClasses specifies whether kOps should
|
||||||
|
create and maintain a set of StorageClasses, one of which it
|
||||||
|
nominates as the default class for the cluster.
|
||||||
|
type: boolean
|
||||||
multizone:
|
multizone:
|
||||||
description: GCE cloud-config options
|
description: GCE cloud-config options
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
|
||||||
|
|
@ -792,6 +792,12 @@ type AzureConfiguration struct {
|
||||||
|
|
||||||
// CloudConfiguration defines the cloud provider configuration
|
// CloudConfiguration defines the cloud provider configuration
|
||||||
type CloudConfiguration struct {
|
type CloudConfiguration struct {
|
||||||
|
// Cross-cloud provider options
|
||||||
|
|
||||||
|
// ManageStorageClasses specifies whether kOps should create and maintain a set of
|
||||||
|
// StorageClasses, one of which it nominates as the default class for the cluster.
|
||||||
|
ManageStorageClasses *bool `json:"manageStorageClasses,omitempty"`
|
||||||
|
|
||||||
// GCE cloud-config options
|
// GCE cloud-config options
|
||||||
Multizone *bool `json:"multizone,omitempty"`
|
Multizone *bool `json:"multizone,omitempty"`
|
||||||
NodeTags *string `json:"nodeTags,omitempty"`
|
NodeTags *string `json:"nodeTags,omitempty"`
|
||||||
|
|
|
||||||
|
|
@ -791,6 +791,12 @@ type AzureConfiguration struct {
|
||||||
|
|
||||||
// CloudConfiguration defines the cloud provider configuration
|
// CloudConfiguration defines the cloud provider configuration
|
||||||
type CloudConfiguration struct {
|
type CloudConfiguration struct {
|
||||||
|
// Cross-cloud provider options
|
||||||
|
|
||||||
|
// ManageStorageClasses specifies whether kOps should create and maintain a set of
|
||||||
|
// StorageClasses, one of which it nominates as the default class for the cluster.
|
||||||
|
ManageStorageClasses *bool `json:"manageStorageClasses,omitempty"`
|
||||||
|
|
||||||
// GCE cloud-config options
|
// GCE cloud-config options
|
||||||
Multizone *bool `json:"multizone,omitempty"`
|
Multizone *bool `json:"multizone,omitempty"`
|
||||||
NodeTags *string `json:"nodeTags,omitempty"`
|
NodeTags *string `json:"nodeTags,omitempty"`
|
||||||
|
|
|
||||||
|
|
@ -1827,6 +1827,7 @@ func Convert_kops_ClassicNetworkingSpec_To_v1alpha2_ClassicNetworkingSpec(in *ko
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_v1alpha2_CloudConfiguration_To_kops_CloudConfiguration(in *CloudConfiguration, out *kops.CloudConfiguration, s conversion.Scope) error {
|
func autoConvert_v1alpha2_CloudConfiguration_To_kops_CloudConfiguration(in *CloudConfiguration, out *kops.CloudConfiguration, s conversion.Scope) error {
|
||||||
|
out.ManageStorageClasses = in.ManageStorageClasses
|
||||||
out.Multizone = in.Multizone
|
out.Multizone = in.Multizone
|
||||||
out.NodeTags = in.NodeTags
|
out.NodeTags = in.NodeTags
|
||||||
out.NodeInstancePrefix = in.NodeInstancePrefix
|
out.NodeInstancePrefix = in.NodeInstancePrefix
|
||||||
|
|
@ -1878,6 +1879,7 @@ func Convert_v1alpha2_CloudConfiguration_To_kops_CloudConfiguration(in *CloudCon
|
||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_kops_CloudConfiguration_To_v1alpha2_CloudConfiguration(in *kops.CloudConfiguration, out *CloudConfiguration, s conversion.Scope) error {
|
func autoConvert_kops_CloudConfiguration_To_v1alpha2_CloudConfiguration(in *kops.CloudConfiguration, out *CloudConfiguration, s conversion.Scope) error {
|
||||||
|
out.ManageStorageClasses = in.ManageStorageClasses
|
||||||
out.Multizone = in.Multizone
|
out.Multizone = in.Multizone
|
||||||
out.NodeTags = in.NodeTags
|
out.NodeTags = in.NodeTags
|
||||||
out.NodeInstancePrefix = in.NodeInstancePrefix
|
out.NodeInstancePrefix = in.NodeInstancePrefix
|
||||||
|
|
|
||||||
|
|
@ -512,6 +512,11 @@ func (in *ClassicNetworkingSpec) DeepCopy() *ClassicNetworkingSpec {
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *CloudConfiguration) DeepCopyInto(out *CloudConfiguration) {
|
func (in *CloudConfiguration) DeepCopyInto(out *CloudConfiguration) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.ManageStorageClasses != nil {
|
||||||
|
in, out := &in.ManageStorageClasses, &out.ManageStorageClasses
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.Multizone != nil {
|
if in.Multizone != nil {
|
||||||
in, out := &in.Multizone, &out.Multizone
|
in, out := &in.Multizone, &out.Multizone
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
|
|
|
||||||
|
|
@ -612,6 +612,11 @@ func (in *ClassicNetworkingSpec) DeepCopy() *ClassicNetworkingSpec {
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *CloudConfiguration) DeepCopyInto(out *CloudConfiguration) {
|
func (in *CloudConfiguration) DeepCopyInto(out *CloudConfiguration) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.ManageStorageClasses != nil {
|
||||||
|
in, out := &in.ManageStorageClasses, &out.ManageStorageClasses
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.Multizone != nil {
|
if in.Multizone != nil {
|
||||||
in, out := &in.Multizone, &out.Multizone
|
in, out := &in.Multizone, &out.Multizone
|
||||||
*out = new(bool)
|
*out = new(bool)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue