helpers

package
v0.0.0-...-cab1b77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAdmissionPluginConfigFileReferences

func GetAdmissionPluginConfigFileReferences(config *configv1.AdmissionPluginConfig) []*string

func GetAuditConfigFileReferences

func GetAuditConfigFileReferences(config *configv1.AuditConfig) []*string

func GetCertFileReferences

func GetCertFileReferences(config *configv1.CertInfo) []*string

func GetClientConfig

func GetClientConfig(kubeConfigFile string, overrides configv1.ClientConnectionOverrides) (*rest.Config, error)

func GetEtcdConnectionInfoFileReferences

func GetEtcdConnectionInfoFileReferences(config *configv1.EtcdConnectionInfo) []*string

func GetFlagsWithFileExtensionsFileReferences

func GetFlagsWithFileExtensionsFileReferences(args map[string][]string) []*string

func GetGenericAPIServerConfigFileReferences

func GetGenericAPIServerConfigFileReferences(config *configv1.GenericAPIServerConfig) []*string

func GetHTTPServingInfoFileReferences

func GetHTTPServingInfoFileReferences(config *configv1.HTTPServingInfo) []*string

func GetKubeClientConfig

func GetKubeClientConfig(kubeClientConnection configv1.KubeClientConfig) (*rest.Config, error)

GetKubeClientConfig loads in-cluster config if kubeConfigFile is empty or the file if not, then applies overrides.

func GetKubeClientConfigFileReferences

func GetKubeClientConfigFileReferences(config *configv1.KubeClientConfig) []*string

func GetKubeConfigOrInClusterConfig

func GetKubeConfigOrInClusterConfig(kubeConfigFile string, overrides configv1.ClientConnectionOverrides) (*rest.Config, error)

GetKubeConfigOrInClusterConfig loads in-cluster config if kubeConfigFile is empty or the file if not, then applies overrides.

func GetRemoteConnectionInfoFileReferences

func GetRemoteConnectionInfoFileReferences(config *configv1.RemoteConnectionInfo) []*string

func GetServingInfoFileReferences

func GetServingInfoFileReferences(config *configv1.ServingInfo) []*string

func GetStringSourceFileReferences

func GetStringSourceFileReferences(s *configv1.StringSource) []*string

func ReadYAML

func ReadYAML(reader io.Reader, schemeFns ...InstallFunc) (runtime.Object, error)

ReadYAML reads content of a reader and returns the runtime.Object that matches it. It chooses the match from the scheme installation that you provide. It does not convert and it does not default.

func ReadYAMLToInternal

func ReadYAMLToInternal(reader io.Reader, schemeFns ...InstallFunc) (runtime.Object, error)

ReadYAMLToInternal reads content of a reader and returns the runtime.Object that matches it. It chooses the match from the scheme installation that you provide. It converts to internal for you.

func RelativizePathWithNoBacksteps

func RelativizePathWithNoBacksteps(refs []*string, base string) error

RelativizePathWithNoBacksteps updates the given refs to be relative paths, relative to the given base directory as long as they do not require backsteps. Any path requiring a backstep is left as-is as long it is absolute. Any non-absolute path that can't be relativized produces an error Empty and "-" paths are never relativized.

func ResolvePaths

func ResolvePaths(refs []*string, base string) error

ResolvePaths updates the given refs to be absolute paths, relative to the given base directory. Empty and "-" paths are never resolved.

func WriteYAML

func WriteYAML(obj runtime.Object, schemeFns ...InstallFunc) ([]byte, error)

WriteYAML serializes a yaml file based on the scheme functions provided

Types

type InstallFunc

type InstallFunc func(scheme *runtime.Scheme) error

InstallFunc is the "normal" function for installing scheme

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL