mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
remove defaultedInternalConfig fromr kubeadm
remove defaultedInternalConfig from kubeadm
This commit is contained in:
parent
661e4d5b38
commit
f54856952f
@ -315,18 +315,6 @@ func documentMapToInitConfiguration(gvkmap map[schema.GroupVersionKind][]byte, a
|
|||||||
return initcfg, nil
|
return initcfg, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func defaultedInternalConfig() *kubeadmapi.ClusterConfiguration {
|
|
||||||
externalcfg := &kubeadmapiv1beta2.ClusterConfiguration{}
|
|
||||||
internalcfg := &kubeadmapi.ClusterConfiguration{}
|
|
||||||
|
|
||||||
kubeadmscheme.Scheme.Default(externalcfg)
|
|
||||||
kubeadmscheme.Scheme.Convert(externalcfg, internalcfg, nil)
|
|
||||||
|
|
||||||
// Default the embedded ComponentConfig structs
|
|
||||||
componentconfigs.Known.Default(internalcfg)
|
|
||||||
return internalcfg
|
|
||||||
}
|
|
||||||
|
|
||||||
// MarshalInitConfigurationToBytes marshals the internal InitConfiguration object to bytes. It writes the embedded
|
// MarshalInitConfigurationToBytes marshals the internal InitConfiguration object to bytes. It writes the embedded
|
||||||
// ClusterConfiguration object with ComponentConfigs out as separate YAML documents
|
// ClusterConfiguration object with ComponentConfigs out as separate YAML documents
|
||||||
func MarshalInitConfigurationToBytes(cfg *kubeadmapi.InitConfiguration, gv schema.GroupVersion) ([]byte, error) {
|
func MarshalInitConfigurationToBytes(cfg *kubeadmapi.InitConfiguration, gv schema.GroupVersion) ([]byte, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user