Documentation ¶
Index ¶
- Variables
- func GetServiceAccountToken(cl *rest.RESTClient, namespacedName runtimeclient.ObjectKey, ...) (string, error)
- func NSTemplateTiers(term ioutils.Terminal, source, outDir, hostNs string) error
- func NewAdminManifestsCmd() *cobra.Command
- func NewCliConfigsCmd() *cobra.Command
- func NewGenerateCmd() *cobra.Command
- func NewNSTemplateTiersCmd() *cobra.Command
- type NewClientFromConfigFunc
- type NewRESTClientFromConfigFunc
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 NewAdminManifestsCmd ¶
func NewCliConfigsCmd ¶
func NewGenerateCmd ¶
func NewNSTemplateTiersCmd ¶
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)
Click to show internal directories.
Click to hide internal directories.