Documentation
¶
Index ¶
- type HelmSPIREProviderFactory
- type ProviderFactory
- type SpireHelm
- func (h *SpireHelm) AddSPIRERepository(ctx context.Context, statusCh chan<- *provisionpb.Status) error
- func (h *SpireHelm) ApplyPostInstallHelmConfig(ctx context.Context, ds datasource.DataSource, ...) error
- func (h *SpireHelm) Deploy(ctx context.Context, ds datasource.DataSource, kubeCfgFile string) (<-chan *provisionpb.Status, error)
- func (h *SpireHelm) GetBundleAndEndpoint(ctx context.Context, statusCh chan<- *provisionpb.Status, ...) error
- func (h *SpireHelm) InstallSPIREStack(ctx context.Context, ds datasource.DataSource, ...) error
- func (h *SpireHelm) ListTrustZones(ds datasource.DataSource) ([]*trust_zone_proto.TrustZone, error)
- func (h *SpireHelm) TearDown(ctx context.Context, ds datasource.DataSource, kubeCfgFile string) (<-chan *provisionpb.Status, error)
- func (h *SpireHelm) UninstallSPIREStack(ctx context.Context, trustZones []*trust_zone_proto.TrustZone, ...) error
- func (h *SpireHelm) Validate(_ context.Context) error
- func (h *SpireHelm) WatchAndConfigure(ctx context.Context, ds datasource.DataSource, ...) error
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
func (f *HelmSPIREProviderFactory) Build(ctx context.Context, ds datasource.DataSource, trustZone *trust_zone_proto.TrustZone, genValues bool) (helm.Provider, error)
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 (*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) 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
Click to show internal directories.
Click to hide internal directories.