Documentation ¶
Index ¶
- Constants
- func ParseString(value any) (any, error)
- func ParseValue(value any) (any, error)
- func SetChartValue(keys []string, value any, chart map[string]any)
- func SplitEnv(envs []string) map[string]string
- func UnmarshalToValues(data []byte) (map[string]interface{}, error)
- type AirflowEnricher
- type AirflowEnricherStore
- type Applier
- type ApplyOpts
- type ChainEnricher
- type Chart
- type ChartFetcher
- type ChartLoader
- type ChartUpdater
- type ClassicLoader
- type Client
- type Config
- type DeclarativeLoader
- type DeleteOpts
- type Deleter
- type Enricher
- type ErrRollback
- type EventData
- type GlobalEnricher
- type GlobalEnricherStore
- type Helm
- func (h *Helm) Apply(ctx context.Context, loader ChartLoader, opts *ApplyOpts) error
- func (h *Helm) Delete(_ context.Context, opts *DeleteOpts) error
- func (h *Helm) Fetch(_ context.Context, repo, chartName, version string) (*chart.Chart, error)
- func (h *Helm) Rollback(_ context.Context, opts *RollbackOpts) error
- func (h *Helm) Update(_ context.Context) error
- type JupyterhubEnricher
- type JupyterhubEnricherStore
- type Marshaller
- type Operations
- type RestoreEnvFn
- type RollbackOpts
- type Rollbacker
- type StreamRender
- type TeamEnricher
- type TeamEnricherStore
Constants ¶
View Source
const ( ProfileListKey = "singleuser.profileList" EnvKey = "env" KnauditImageKey = "knauditImage,omit" )
View Source
const ( // DefaultHelmDriver is set to secrets, which is the default // for Helm 3: https://helm.sh/docs/topics/advanced/#storage-backends DefaultHelmDriver = "secrets" )
Variables ¶
This section is empty.
Functions ¶
func ParseString ¶
func ParseValue ¶
func UnmarshalToValues ¶
UnmarshalToValues takes a byte slice and unmarshalls it into a map, which is what Helm's API expects
Types ¶
type AirflowEnricher ¶
type AirflowEnricher struct {
// contains filtered or unexported fields
}
func NewAirflowEnricher ¶
func NewAirflowEnricher(teamID string, store AirflowEnricherStore) *AirflowEnricher
type AirflowEnricherStore ¶
type Applier ¶
type Applier interface { // Apply will either install or upgrade a chart depending on the // state of the release in the cluster Apply(ctx context.Context, loader ChartLoader, opts *ApplyOpts) error }
type ChainEnricher ¶
type ChainEnricher struct {
// contains filtered or unexported fields
}
func NewChainEnricher ¶
func NewChainEnricher(enrichers ...Enricher) *ChainEnricher
type Chart ¶
type Chart struct { RepositoryName string RepositoryURL string ReleaseName string Version string Chart string Namespace string Timeout time.Duration Values interface{} }
Chart contains the state for installing a chart
type ChartFetcher ¶
type ChartLoader ¶
type ChartUpdater ¶
type ClassicLoader ¶
type ClassicLoader struct { RepositoryName string ChartName string Version string // contains filtered or unexported fields }
func NewClassicLoader ¶
func NewClassicLoader(repositoryName, chartName, version string, fetcher ChartFetcher, enricher Enricher) *ClassicLoader
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) InstallOrUpgrade ¶
type Config ¶
type Config struct { KubeContext string KubeConfig string Debug bool RepositoryConfig string DryRun bool Out io.Writer Err io.Writer }
func (*Config) ToHelmEnvs ¶
type DeclarativeLoader ¶
type DeclarativeLoader struct {
// contains filtered or unexported fields
}
type DeleteOpts ¶
type Deleter ¶
type Deleter interface { // Delete will remove a release from the cluster Delete(ctx context.Context, opts *DeleteOpts) error }
type ErrRollback ¶
type ErrRollback struct {
// contains filtered or unexported fields
}
func NewErrRollback ¶
func NewErrRollback(err error) *ErrRollback
func (*ErrRollback) Error ¶
func (e *ErrRollback) Error() string
func (*ErrRollback) Unwrap ¶
func (e *ErrRollback) Unwrap() error
type GlobalEnricher ¶
type GlobalEnricher struct {
// contains filtered or unexported fields
}
func NewGlobalEnricher ¶
func NewGlobalEnricher(chartType gensql.ChartType, store GlobalEnricherStore) *GlobalEnricher
type GlobalEnricherStore ¶
type Helm ¶
type Helm struct {
// contains filtered or unexported fields
}
type JupyterhubEnricher ¶
type JupyterhubEnricher struct {
// contains filtered or unexported fields
}
func NewJupyterhubEnricher ¶
func NewJupyterhubEnricher(teamID string, store JupyterhubEnricherStore) *JupyterhubEnricher
type JupyterhubEnricherStore ¶
type Marshaller ¶
Marshaller provides an interface for returning YAML
type Operations ¶
type Operations interface { Applier Deleter Rollbacker ChartFetcher ChartUpdater }
type RestoreEnvFn ¶
type RestoreEnvFn func() error
RestoreEnvFn can be deferred in the calling function and will return the environment to its original state
func EstablishEnv ¶
func EstablishEnv(envs map[string]string, keepEnvs ...string) (RestoreEnvFn, error)
EstablishEnv provides functionality for setting a safe environment, this is required, because helm for some reason, loves fetching everything from environment variables
type RollbackOpts ¶
type Rollbacker ¶
type Rollbacker interface {
Rollback(ctx context.Context, opts *RollbackOpts) error
}
type StreamRender ¶
type StreamRender struct {
// contains filtered or unexported fields
}
func NewStreamRenderer ¶
func NewStreamRenderer(out io.Writer) *StreamRender
type TeamEnricher ¶
type TeamEnricher struct {
// contains filtered or unexported fields
}
func NewTeamEnricher ¶
func NewTeamEnricher(chartType gensql.ChartType, teamID string, store TeamEnricherStore) *TeamEnricher
type TeamEnricherStore ¶
Click to show internal directories.
Click to hide internal directories.