Documentation ¶
Overview ¶
Package helper implements helper functions used for unit tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFakeClusterInfo ¶
func GetFakeClusterInfo(server string, cert *x509.Certificate) string
GetFakeClusterInfo returns the cluster-info configmap
func GetFakePinnipedInfo ¶
func GetFakePinnipedInfo(pinnipedInfo PinnipedInfo) string
GetFakePinnipedInfo returns the pinniped-info configmap
func NewCLIPlugin ¶
func NewCLIPlugin(options TestCLIPluginOption) v1alpha1.CLIPlugin
NewCLIPlugin returns new NewCLIPlugin object
Types ¶
type PinnipedInfo ¶
type PinnipedInfo struct { ClusterName string `json:"cluster_name"` ConciergeEndpoint string `json:"concierge_endpoint"` Issuer string `json:"issuer"` IssuerCABundleData string `json:"issuer_ca_bundle_data"` ConciergeIsClusterScoped bool `json:"concierge_is_cluster_scoped,string"` }
PinnipedInfo contains settings for the supervisor.
type TestCLIPluginOption ¶
TestCLIPluginOption describes options for CLIPlugin
Click to show internal directories.
Click to hide internal directories.