package uploadconfig
import "k8s.io/kubernetes/cmd/kubeadm/app/phases/uploadconfig"
Index ¶
- Constants
- func MutateImageRepository(cfg *kubeadmapi.InitConfiguration, client clientset.Interface) error
- func UploadConfiguration(cfg *kubeadmapi.InitConfiguration, client clientset.Interface) error
Constants ¶
const ( // NodesKubeadmConfigClusterRoleName sets the name for the ClusterRole that allows // the bootstrap tokens to access the kubeadm-config ConfigMap during the node bootstrap/discovery // or during upgrade nodes NodesKubeadmConfigClusterRoleName = "kubeadm:nodes-kubeadm-config" )
Functions ¶
func MutateImageRepository ¶
func MutateImageRepository(cfg *kubeadmapi.InitConfiguration, client clientset.Interface) error
MutateImageRepository mutates the imageRepository field in the ClusterConfiguration to 'registry.k8s.io' in case it was the legacy default 'k8s.gcr.io' https://github.com/kubernetes/kubeadm/issues/2671
func UploadConfiguration ¶
func UploadConfiguration(cfg *kubeadmapi.InitConfiguration, client clientset.Interface) error
UploadConfiguration saves the InitConfiguration used for later reference (when upgrading for instance)
Source Files ¶
uploadconfig.go
- Version
- v1.24.14
- Published
- May 17, 2023
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 54 seconds ago –
Tools for package owners.