spirehelm

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelmSPIREProviderFactory added in v0.5.0

type HelmSPIREProviderFactory struct{}

HelmSPIREProviderFactory implements the ProviderFactory interface, building a HelmSPIREProvider using the default values generator.

func (*HelmSPIREProviderFactory) Build added in v0.5.0

type ProviderFactory added in v0.5.0

type ProviderFactory interface {
	// Build returns a helm.Provider configured with values for an install/upgrade.
	Build(ctx context.Context, ds datasource.DataSource, trustZone *trust_zone_proto.TrustZone, genValues bool) (helm.Provider, error)
}

ProviderFactory is an interface that abstracts the construction of helm.Provider objects.

type SpireHelm

type SpireHelm struct {
	// contains filtered or unexported fields
}

SpireHelm implements the `Provision` interface by deploying a SPIRE cluster using the SPIRE Helm charts.

func NewSpireHelm

func NewSpireHelm(providerFactory ProviderFactory) *SpireHelm

func (*SpireHelm) AddSPIRERepository added in v0.5.0

func (h *SpireHelm) AddSPIRERepository(ctx context.Context, statusCh chan<- *provisionpb.Status) error

func (*SpireHelm) ApplyPostInstallHelmConfig added in v0.5.0

func (h *SpireHelm) ApplyPostInstallHelmConfig(ctx context.Context, ds datasource.DataSource, trustZones []*trust_zone_proto.TrustZone, statusCh chan<- *provisionpb.Status) error

func (*SpireHelm) Deploy

func (h *SpireHelm) Deploy(ctx context.Context, ds datasource.DataSource, kubeCfgFile string) (<-chan *provisionpb.Status, error)

func (*SpireHelm) GetBundleAndEndpoint added in v0.5.0

func (h *SpireHelm) GetBundleAndEndpoint(ctx context.Context, statusCh chan<- *provisionpb.Status, ds datasource.DataSource, trustZone *trust_zone_proto.TrustZone, kubeCfgFile string) error

func (*SpireHelm) InstallSPIREStack added in v0.5.0

func (h *SpireHelm) InstallSPIREStack(ctx context.Context, ds datasource.DataSource, trustZones []*trust_zone_proto.TrustZone, statusCh chan<- *provisionpb.Status) error

func (*SpireHelm) ListTrustZones added in v0.5.0

func (h *SpireHelm) ListTrustZones(ds datasource.DataSource) ([]*trust_zone_proto.TrustZone, error)

ListTrustZones returns a list of all trust zones. If no trust zones exist, it returns an error.

func (*SpireHelm) TearDown

func (h *SpireHelm) TearDown(ctx context.Context, ds datasource.DataSource, kubeCfgFile string) (<-chan *provisionpb.Status, error)

func (*SpireHelm) UninstallSPIREStack added in v0.5.0

func (h *SpireHelm) UninstallSPIREStack(ctx context.Context, trustZones []*trust_zone_proto.TrustZone, statusCh chan<- *provisionpb.Status) error

func (*SpireHelm) Validate added in v0.5.0

func (h *SpireHelm) Validate(_ context.Context) error

func (*SpireHelm) WatchAndConfigure added in v0.5.0

func (h *SpireHelm) WatchAndConfigure(ctx context.Context, ds datasource.DataSource, trustZones []*trust_zone_proto.TrustZone, kubeCfgFile string, statusCh chan<- *provisionpb.Status) error

Jump to

Keyboard shortcuts

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