Documentation
¶
Overview ¶
Copyright © 2021 Antoine Martin <antoine@openance.com>
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.
cSpell:words forbidigo
Index ¶
- Constants
- func ApplyIkniteClusterSpecToClusterConfiguration(ikniteCfg *v1alpha1.IkniteClusterSpec, cfg *kubeadmApi.ClusterConfiguration)
- func ApplyIkniteClusterSpecToClusterConfigurationV1(ikniteCfg *v1alpha1.IkniteClusterSpec, cfg *kubeadmApiV1.ClusterConfiguration)
- func ApplyIkniteClusterSpecToInitConfiguration(ikniteCfg *v1alpha1.IkniteClusterSpec, cfg *kubeadmApi.InitConfiguration)
- func ConfigureClusterCommand(flagSet *flag.FlagSet, ikniteConfig *v1alpha1.IkniteClusterSpec)
- func DecodeIkniteConfig(ikniteConfig *v1alpha1.IkniteClusterSpec) error
- func GetIkniteImages(ikniteConfig *v1alpha1.IkniteClusterSpec) ([]string, error)
- func GetKineImage() string
- func GetKubeVipImage() string
- func MarshalIkniteConfig(ikniteConfig *v1alpha1.IkniteClusterSpec, format string) ([]byte, error)
- func PrintIkniteConfig(writer io.Writer, ikniteConfig *v1alpha1.IkniteClusterSpec, format string) error
- func StartPersistentPreRun(cmd *cobra.Command, _ []string)
- func WriteToFile(path string, data []byte) error
Constants ¶
const ( ForceConfig = "force_config" IP = "cluster.ip" IPCreate = "cluster.create_ip" IPNetworkInterface = "cluster.network_interface" DomainName = "cluster.domain_name" KubernetesVersion = "cluster.kubernetes_version" EnableMDNS = "cluster.enable_mdns" ClusterName = "cluster.cluster_name" Kustomization = "cluster.kustomization" UseEtcd = "cluster.use_etcd" )
Variables ¶
This section is empty.
Functions ¶
func ApplyIkniteClusterSpecToClusterConfiguration ¶ added in v0.6.0
func ApplyIkniteClusterSpecToClusterConfiguration( ikniteCfg *v1alpha1.IkniteClusterSpec, cfg *kubeadmApi.ClusterConfiguration, )
func ApplyIkniteClusterSpecToClusterConfigurationV1 ¶ added in v0.6.0
func ApplyIkniteClusterSpecToClusterConfigurationV1( ikniteCfg *v1alpha1.IkniteClusterSpec, cfg *kubeadmApiV1.ClusterConfiguration, )
func ApplyIkniteClusterSpecToInitConfiguration ¶ added in v0.6.0
func ApplyIkniteClusterSpecToInitConfiguration( ikniteCfg *v1alpha1.IkniteClusterSpec, cfg *kubeadmApi.InitConfiguration, )
ApplyIkniteClusterSpecToInitConfiguration applies IkniteClusterSpec to InitConfiguration. TODO: This function should be elsewhere.
func ConfigureClusterCommand ¶ added in v0.5.0
func ConfigureClusterCommand(flagSet *flag.FlagSet, ikniteConfig *v1alpha1.IkniteClusterSpec)
func DecodeIkniteConfig ¶ added in v0.5.0
func DecodeIkniteConfig(ikniteConfig *v1alpha1.IkniteClusterSpec) error
DecodeIkniteConfig decodes the configuration from the viper configuration. This allows providing configuration values as environment variables.
func GetIkniteImages ¶ added in v0.6.0
func GetIkniteImages(ikniteConfig *v1alpha1.IkniteClusterSpec) ([]string, error)
GetIkniteImages returns the list of container images used by iknite.
func GetKineImage ¶ added in v0.6.3
func GetKineImage() string
func GetKubeVipImage ¶ added in v0.6.0
func GetKubeVipImage() string
func MarshalIkniteConfig ¶ added in v0.6.0
func MarshalIkniteConfig(ikniteConfig *v1alpha1.IkniteClusterSpec, format string) ([]byte, error)
func PrintIkniteConfig ¶ added in v0.6.0
func PrintIkniteConfig( writer io.Writer, ikniteConfig *v1alpha1.IkniteClusterSpec, format string, ) error
PrintIkniteConfig prints the iknite configuration in the specified format to the provided writer.
func StartPersistentPreRun ¶ added in v0.5.0
func WriteToFile ¶ added in v0.6.0
Types ¶
This section is empty.