Documentation ¶
Overview ¶
Package kind implements the runtime.Runtime interface using the kind.
Index ¶
- func BuildDashboardDeployment(conf BuildDashboardDeploymentConfig) (string, error)
- func BuildJaegerDeployment(conf BuildJaegerDeploymentConfig) (string, error)
- func BuildKind(conf BuildKindConfig) (string, error)
- func BuildKwokControllerPod(conf BuildKwokControllerPodConfig) (string, error)
- func BuildPrometheusDeployment(conf BuildPrometheusDeploymentConfig) (string, error)
- func NewDockerCluster(name, workdir string) (runtime.Runtime, error)
- func NewPodmanCluster(name, workdir string) (runtime.Runtime, error)
- type BuildDashboardDeploymentConfig
- type BuildJaegerDeploymentConfig
- type BuildKindConfig
- type BuildKwokControllerPodConfig
- type BuildPrometheusDeploymentConfig
- type Cluster
- func (c *Cluster) AddContext(ctx context.Context, kubeconfigPath string) error
- func (c *Cluster) Available(ctx context.Context) error
- func (c *Cluster) CollectLogs(ctx context.Context, dir string) error
- func (c *Cluster) Down(ctx context.Context) error
- func (c *Cluster) EtcdctlInCluster(ctx context.Context, args ...string) error
- func (c *Cluster) Install(ctx context.Context) error
- func (c *Cluster) ListBinaries(ctx context.Context) ([]string, error)
- func (c *Cluster) ListImages(ctx context.Context) ([]string, error)
- func (c *Cluster) Logs(ctx context.Context, name string, out io.Writer) error
- func (c *Cluster) LogsFollow(ctx context.Context, name string, out io.Writer) error
- func (c *Cluster) Ready(ctx context.Context) (bool, error)
- func (c *Cluster) RemoveContext(ctx context.Context, kubeconfigPath string) error
- func (c *Cluster) SnapshotRestore(ctx context.Context, path string) error
- func (c *Cluster) SnapshotRestoreWithYAML(ctx context.Context, path string, filters []string) error
- func (c *Cluster) SnapshotSave(ctx context.Context, path string) error
- func (c *Cluster) SnapshotSaveWithYAML(ctx context.Context, path string, filters []string) error
- func (c *Cluster) Start(ctx context.Context) error
- func (c *Cluster) StartComponent(ctx context.Context, name string) error
- func (c *Cluster) Stop(ctx context.Context) error
- func (c *Cluster) StopComponent(ctx context.Context, name string) error
- func (c *Cluster) Up(ctx context.Context) error
- func (c *Cluster) WaitReady(ctx context.Context, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDashboardDeployment ¶ added in v0.4.0
func BuildDashboardDeployment(conf BuildDashboardDeploymentConfig) (string, error)
BuildDashboardDeployment builds the dashboard deployment yaml content.
func BuildJaegerDeployment ¶ added in v0.4.0
func BuildJaegerDeployment(conf BuildJaegerDeploymentConfig) (string, error)
BuildJaegerDeployment builds the jaeger deployment yaml content.
func BuildKind ¶
func BuildKind(conf BuildKindConfig) (string, error)
BuildKind builds the kind yaml content.
func BuildKwokControllerPod ¶ added in v0.1.0
func BuildKwokControllerPod(conf BuildKwokControllerPodConfig) (string, error)
BuildKwokControllerPod builds the kwok controller pod yaml content.
func BuildPrometheusDeployment ¶
func BuildPrometheusDeployment(conf BuildPrometheusDeploymentConfig) (string, error)
BuildPrometheusDeployment builds the prometheus deployment yaml content.
func NewDockerCluster ¶ added in v0.3.0
NewDockerCluster creates a new Runtime for kind with docker
Types ¶
type BuildDashboardDeploymentConfig ¶ added in v0.4.0
type BuildDashboardDeploymentConfig struct { DashboardImage string Name string Banner string ExtraArgs []internalversion.ExtraArgs ExtraVolumes []internalversion.Volume ExtraEnvs []internalversion.Env }
BuildDashboardDeploymentConfig is the configuration for building the dashboard deployment
type BuildJaegerDeploymentConfig ¶ added in v0.4.0
type BuildJaegerDeploymentConfig struct { JaegerImage string Name string LogLevel string ExtraArgs []internalversion.ExtraArgs ExtraVolumes []internalversion.Volume ExtraEnvs []internalversion.Env }
BuildJaegerDeploymentConfig is the configuration for building the jaeger deployment
type BuildKindConfig ¶
type BuildKindConfig struct { KubeApiserverPort uint32 EtcdPort uint32 DashboardPort uint32 PrometheusPort uint32 JaegerPort uint32 KwokControllerPort uint32 RuntimeConfig []string FeatureGates []string AuditPolicy string AuditLog string KubeconfigPath string SchedulerConfig string ConfigPath string TracingConfigPath string EtcdExtraArgs []internalversion.ExtraArgs EtcdExtraVolumes []internalversion.Volume ApiserverExtraArgs []internalversion.ExtraArgs ApiserverExtraVolumes []internalversion.Volume SchedulerExtraArgs []internalversion.ExtraArgs SchedulerExtraVolumes []internalversion.Volume ControllerManagerExtraArgs []internalversion.ExtraArgs Verbosity log.Level ControllerManagerExtraVolumes []internalversion.Volume KwokControllerExtraVolumes []internalversion.Volume KwokControllerExtraExtraEnvs []internalversion.Env BindAddress string DisableQPSLimits bool KubeVersion version.Version }
BuildKindConfig is the configuration for building the kind config
type BuildKwokControllerPodConfig ¶ added in v0.1.0
type BuildKwokControllerPodConfig struct { KwokControllerImage string Name string Verbosity log.Level NodeLeaseDurationSeconds uint ExtraArgs []internalversion.ExtraArgs ExtraVolumes []internalversion.Volume ExtraEnvs []internalversion.Env EnableCRDs []string }
BuildKwokControllerPodConfig is the configuration for building the kwok controller pod
type BuildPrometheusDeploymentConfig ¶
type BuildPrometheusDeploymentConfig struct { PrometheusImage string Name string LogLevel string ExtraArgs []internalversion.ExtraArgs ExtraVolumes []internalversion.Volume ExtraEnvs []internalversion.Env }
BuildPrometheusDeploymentConfig is the configuration for building the prometheus deployment
type Cluster ¶
Cluster is an implementation of Runtime for kind
func (*Cluster) AddContext ¶ added in v0.2.0
AddContext add the context of cluster to kubeconfig
func (*Cluster) CollectLogs ¶ added in v0.3.0
CollectLogs returns the logs of the specified component.
func (*Cluster) EtcdctlInCluster ¶ added in v0.1.0
EtcdctlInCluster implements the ectdctl subcommand
func (*Cluster) ListBinaries ¶
ListBinaries list binaries in the cluster
func (*Cluster) ListImages ¶
ListImages list images in the cluster
func (*Cluster) LogsFollow ¶
LogsFollow follows the logs of the component
func (*Cluster) RemoveContext ¶ added in v0.2.0
RemoveContext remove the context of cluster from kubeconfig
func (*Cluster) SnapshotRestore ¶
SnapshotRestore restore the snapshot of cluster
func (*Cluster) SnapshotRestoreWithYAML ¶ added in v0.2.0
SnapshotRestoreWithYAML restore the snapshot of cluster
func (*Cluster) SnapshotSave ¶
SnapshotSave save the snapshot of cluster
func (*Cluster) SnapshotSaveWithYAML ¶ added in v0.2.0
SnapshotSaveWithYAML save the snapshot of cluster
func (*Cluster) StartComponent ¶ added in v0.1.0
StartComponent starts a component in the cluster
func (*Cluster) StopComponent ¶ added in v0.1.0
StopComponent stops a component in the cluster