generate

package
v0.0.0-...-5a14398 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultNewExternalClientFromConfig = func(config *rest.Config) (*rest.RESTClient, error) {
	if config.GroupVersion == nil {
		config.GroupVersion = &authv1.SchemeGroupVersion
	}
	if config.NegotiatedSerializer == nil {
		config.NegotiatedSerializer = scheme.Codecs
	}
	return rest.RESTClientFor(config)
}

Functions

func GetServiceAccountToken

func GetServiceAccountToken(cl *rest.RESTClient, namespacedName runtimeclient.ObjectKey, tokenExpirationDays int64) (string, error)

GetServiceAccountToken returns the SA's token or returns an error if none was found. NOTE: due to a changes in OpenShift 4.11, tokens are not listed as `secrets` in ServiceAccounts. The recommended solution is to use the TokenRequest API when server version >= 4.11 (see https://docs.openshift.com/container-platform/4.11/release_notes/ocp-4-11-release-notes.html#ocp-4-11-notable-technical-changes)

func NSTemplateTiers

func NSTemplateTiers(term ioutils.Terminal, source, outDir, hostNs string) error

func NewAdminManifestsCmd

func NewAdminManifestsCmd() *cobra.Command

func NewCliConfigsCmd

func NewCliConfigsCmd() *cobra.Command

func NewGenerateCmd

func NewGenerateCmd() *cobra.Command

func NewNSTemplateTiersCmd

func NewNSTemplateTiersCmd() *cobra.Command

Types

type NewClientFromConfigFunc

type NewClientFromConfigFunc func(config *rest.Config, options runtimeclient.Options) (runtimeclient.Client, error)

type NewRESTClientFromConfigFunc

type NewRESTClientFromConfigFunc func(config *rest.Config) (*rest.RESTClient, error)

Jump to

Keyboard shortcuts

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