apitypes

package
v0.0.0-...-9940484 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 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 CatalogAccess

type CatalogAccess struct {
	Repo         string `json:"repo,omitempty"`
	ChartName    string `json:"chartName,omitempty"`
	ChartVersion string `json:"chartVersion,omitempty"`
}

type HelmSpecificData

type HelmSpecificData struct {
	InstallName   string         `json:"installName,omitempty"`
	Namespace     string         `json:"namespace,omitempty"`
	CatalogAccess *CatalogAccess `json:"catalogAccess,omitempty"`
	TarballAccess *TarballAccess `json:"tarballAccess,omitempty"`

	InstallTimeout   *int64 `json:"installTimeout,omitempty"`
	UpgradeTimeout   *int64 `json:"upgradeTimeout,omitempty"`
	RollbackTimeout  *int64 `json:"rollbackTimeout,omitempty"`
	UninstallTimeout *int64 `json:"uninstallTimeout,omitempty"`

	InstallArguments []string `json:"installArguments,omitempty"`
	UpdateArguments  []string `json:"updateArguments,omitempty"`
	RemoveArguments  []string `json:"removeArguments,omitempty"`

	InternalExport map[string]InternalExportEntry `json:"internalExport,omitempty"`
}

func NewHelmSpecificData

func NewHelmSpecificData(typeSpecificData *runtime.RawExtension) (*HelmSpecificData, error)

func (*HelmSpecificData) GetAuthHeader

func (h *HelmSpecificData) GetAuthHeader(ctx context.Context, namedSecretResolver *NamedSecretResolver) (string, error)

func (*HelmSpecificData) GetInstallTimeout

func (h *HelmSpecificData) GetInstallTimeout() time.Duration

func (*HelmSpecificData) GetRollbackTimeout

func (h *HelmSpecificData) GetRollbackTimeout() time.Duration

func (*HelmSpecificData) GetUninstallTimeout

func (h *HelmSpecificData) GetUninstallTimeout() time.Duration

func (*HelmSpecificData) GetUpgradeTimeout

func (h *HelmSpecificData) GetUpgradeTimeout() time.Duration

type InternalExportEntry

type InternalExportEntry struct {
	Name       string `json:"name,omitempty"`
	Namespace  string `json:"namespace,omitempty"`
	APIVersion string `json:"apiVersion,omitempty"`
	Resource   string `json:"resource,omitempty"`
	FieldPath  string `json:"fieldPath,omitempty"`
}

func (*InternalExportEntry) String

func (e *InternalExportEntry) String() string

type KappSpecificData

type KappSpecificData struct {
	*v1alpha1.AppSpec `json:",inline"`
	InternalExport    map[string]InternalExportEntry `json:"internalExport,omitempty"`
}

func NewKappSpecificData

func NewKappSpecificData(typeSpecificData []byte) (*KappSpecificData, error)

type NamedSecretResolver

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

func NewNamedSecretResolver

func NewNamedSecretResolver(secretClient client.Client, secretNamespace string,
	namedInternalSecretNames map[string]string) *NamedSecretResolver

func (*NamedSecretResolver) ResolveSecretValue

func (r *NamedSecretResolver) ResolveSecretValue(ctx context.Context, logicalSecretName, key string) (string, bool, error)

type SecretRef

type SecretRef struct {
	Name string `json:"name,omitempty"`
}

type TarballAccess

type TarballAccess struct {
	URL          string    `json:"url,omitempty"`
	CustomCAData string    `json:"customCAData,omitempty"`
	AuthHeader   string    `json:"authHeader,omitempty"`
	SecretRef    SecretRef `json:"secretRef,omitempty"`
}

Jump to

Keyboard shortcuts

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