Documentation ¶
Index ¶
- func DefaultPodSpec(d string) v1.PodSpec
- type Base
- func (b *Base) CreateWorkerContainerDefintion(hostname string, cert *tls.Certificate, command, args []string, ...) v1.Container
- func (b *Base) GetDriver() string
- func (b *Base) GetName() string
- func (b *Base) GetResultFiles() []string
- func (b *Base) GetResultFormat() string
- func (b *Base) GetSecretName() string
- func (b *Base) GetSessionID() string
- func (b *Base) MakeTLSSecret(cert *tls.Certificate, ownerPod *v1.Pod) (*v1.Secret, error)
- func (b *Base) SkipCleanup() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPodSpec ¶ added in v0.15.2
DefaultPodSpec returns the default pod spec used for the given plugin driver type.
Types ¶
type Base ¶
type Base struct { Definition manifest.Manifest SessionID string Namespace string SonobuoyImage string CleanedUp bool ImagePullPolicy string ImagePullSecrets string CustomAnnotations map[string]string }
Base is the struct that stores state for plugin drivers and contains helper methods.
func (*Base) CreateWorkerContainerDefintion ¶ added in v0.15.2
func (b *Base) CreateWorkerContainerDefintion(hostname string, cert *tls.Certificate, command, args []string, progressPort string) v1.Container
CreateWorkerContainerDefintion creates the container definition to run the Sonobuoy worker for a plugin.
func (*Base) GetResultFiles ¶ added in v0.15.1
GetResultFiles returns the files to be post-processed for this plugin.
func (*Base) GetResultFormat ¶ added in v0.15.1
GetResultFormat returns the ResultFormat of this plugin.
func (*Base) GetSecretName ¶
GetSecretName gets a name for a secret based on the plugin name and session ID.
func (*Base) GetSessionID ¶
GetSessionID returns the session id associated with the plugin.
func (*Base) MakeTLSSecret ¶
MakeTLSSecret makes a Kubernetes secret object for the given TLS certificate.
func (*Base) SkipCleanup ¶ added in v0.15.1
SkipCleanup returns whether cleanup for this plugin should be skipped or not.