helpers

package
v0.0.0-...-dab26bb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultClientTransport

func DefaultClientTransport(rt http.RoundTripper) http.RoundTripper

DefaultClientTransport sets defaults for a client Transport that are suitable for use by infrastructure components.

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 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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