Documentation ¶
Overview ¶
Copyright 2021 k0s authors
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.
Copyright 2021 k0s authors ¶
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.
Index ¶
- Variables
- func DefaultLogLevels() map[string]string
- func GetControllerFlags() *pflag.FlagSet
- func GetKubeCtlFlagSet() *pflag.FlagSet
- func GetPersistentFlagSet() *pflag.FlagSet
- func GetWorkerFlags() *pflag.FlagSet
- func GetYamlFromFile(cfgPath string, k0sVars constant.CfgVars) (clusterConfig *v1beta1.ClusterConfig, err error)
- func ValidateYaml(cfgPath string, k0sVars constant.CfgVars) (clusterConfig *v1beta1.ClusterConfig, err error)
- type CLIOptions
- type ControllerOptions
- type WorkerOptions
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DefaultLogLevels ¶
func GetControllerFlags ¶
func GetKubeCtlFlagSet ¶
XX: not a pretty hack, but we need the data-dir flag for the kubectl subcommand XX: when other global flags cannot be used (specifically -d and -c)
func GetPersistentFlagSet ¶
func GetWorkerFlags ¶
func GetYamlFromFile ¶
func ValidateYaml ¶
Types ¶
type CLIOptions ¶
type CLIOptions struct { WorkerOptions ControllerOptions CfgFile string ClusterConfig *v1beta1.ClusterConfig Debug bool DebugListenOn string DefaultLogLevels map[string]string K0sVars constant.CfgVars KubeClient k8s.Interface Logging map[string]string // merged outcome of default log levels and cmdLoglevels }
This struct holds all the CLI options & settings required by the different k0s sub-commands
func GetCmdOpts ¶
func GetCmdOpts() CLIOptions
type ControllerOptions ¶
Shared controller cli flags