Documentation ¶
Index ¶
- func GetAdmissionPluginConfigFileReferences(config *configv1.AdmissionPluginConfig) []*string
- func GetAuditConfigFileReferences(config *configv1.AuditConfig) []*string
- func GetCertFileReferences(config *configv1.CertInfo) []*string
- func GetClientConfig(kubeConfigFile string, overrides configv1.ClientConnectionOverrides) (*rest.Config, error)
- func GetEtcdConnectionInfoFileReferences(config *configv1.EtcdConnectionInfo) []*string
- func GetFlagsWithFileExtensionsFileReferences(args map[string][]string) []*string
- func GetGenericAPIServerConfigFileReferences(config *configv1.GenericAPIServerConfig) []*string
- func GetHTTPServingInfoFileReferences(config *configv1.HTTPServingInfo) []*string
- func GetKubeClientConfig(kubeClientConnection configv1.KubeClientConfig) (*rest.Config, error)
- func GetKubeClientConfigFileReferences(config *configv1.KubeClientConfig) []*string
- func GetKubeConfigOrInClusterConfig(kubeConfigFile string, overrides configv1.ClientConnectionOverrides) (*rest.Config, error)
- func GetRemoteConnectionInfoFileReferences(config *configv1.RemoteConnectionInfo) []*string
- func GetServingInfoFileReferences(config *configv1.ServingInfo) []*string
- func GetStringSourceFileReferences(s *configv1.StringSource) []*string
- func ReadYAML(reader io.Reader, schemeFns ...InstallFunc) (runtime.Object, error)
- func ReadYAMLToInternal(reader io.Reader, schemeFns ...InstallFunc) (runtime.Object, error)
- func RelativizePathWithNoBacksteps(refs []*string, base string) error
- func ResolvePaths(refs []*string, base string) error
- func WriteYAML(obj runtime.Object, schemeFns ...InstallFunc) ([]byte, error)
- type InstallFunc
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 GetClientConfig ¶
func GetEtcdConnectionInfoFileReferences ¶
func GetEtcdConnectionInfoFileReferences(config *configv1.EtcdConnectionInfo) []*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 ¶
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 ¶
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 ¶
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 ¶
ResolvePaths updates the given refs to be absolute paths, relative to the given base directory. Empty and "-" paths are never resolved.
Types ¶
type InstallFunc ¶
InstallFunc is the "normal" function for installing scheme