generators

package
v0.0.0-...-58a49d6 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Config config.Config
}

func (*Application) Generate

func (g *Application) Generate(source resource.Source, config interface{}) (resource.Operations, error)

Generate transforms an Application resource into a set of Kubernetes resources, along with information about what to do with these resources, i.e. CreateOrUpdate, etc.

func (*Application) Prepare

func (g *Application) Prepare(ctx context.Context, source resource.Source, kube client.Client) (interface{}, error)

Prepare a configuration context for further processing. This function detects run-time parameters from a live running cluster.

type Naisjob

type Naisjob struct {
	Config config.Config
}

func (*Naisjob) Generate

func (g *Naisjob) Generate(source resource.Source, config interface{}) (resource.Operations, error)

CreateNaisjob takes an Naisjob resource and returns a slice of Kubernetes resources along with information about what to do with these resources.

func (*Naisjob) Prepare

func (g *Naisjob) Prepare(ctx context.Context, source resource.Source, kube client.Client) (interface{}, error)

Generate a configuration context for further processing. This function detects run-time parameters from a live running cluster.

type Options

type Options struct {
	Config              config.Config
	GoogleProjectID     string
	GoogleTeamProjectID string
	Linkerd             bool
	NumReplicas         int32
	Team                string
	SqlInstance         SqlInstance
}

Options defines customizations for resource objects. These parameters are set during the Prepare() stage of the generator, and then passed to the different resource generators.

func (*Options) GetAPIServerIP

func (o *Options) GetAPIServerIP() string

func (*Options) GetAccessPolicyNotAllowedCIDRs

func (o *Options) GetAccessPolicyNotAllowedCIDRs() []string

func (*Options) GetAivenGeneration

func (o *Options) GetAivenGeneration() int

func (*Options) GetAivenProject

func (o *Options) GetAivenProject() string

func (*Options) GetAivenRange

func (o *Options) GetAivenRange() string

func (*Options) GetClusterName

func (o *Options) GetClusterName() string

func (*Options) GetDocUrl

func (o *Options) GetDocUrl() string

func (*Options) GetFQDNPolicy

func (o *Options) GetFQDNPolicy() config.FQDNPolicy

func (*Options) GetFrontendOptions

func (o *Options) GetFrontendOptions() config.Frontend

func (*Options) GetGatewayMappings

func (o *Options) GetGatewayMappings() []config.GatewayMapping

func (*Options) GetGoogleCloudSQLProxyContainerImage

func (o *Options) GetGoogleCloudSQLProxyContainerImage() string

func (*Options) GetGoogleProjectID

func (o *Options) GetGoogleProjectID() string

func (*Options) GetGoogleTeamProjectID

func (o *Options) GetGoogleTeamProjectID() string

func (*Options) GetHostAliases

func (o *Options) GetHostAliases() []config.HostAlias

func (*Options) GetImagePullSecrets

func (o *Options) GetImagePullSecrets() []string

func (*Options) GetLeaderElectionImage

func (o *Options) GetLeaderElectionImage() string

func (*Options) GetNaisNamespace

func (o *Options) GetNaisNamespace() string

func (*Options) GetNumReplicas

func (o *Options) GetNumReplicas() int32

func (*Options) GetObservability

func (o *Options) GetObservability() config.Observability

func (*Options) GetSecureLogsOptions

func (o *Options) GetSecureLogsOptions() config.Securelogs

func (*Options) GetTeam

func (o *Options) GetTeam() string

func (*Options) GetTexasOptions

func (o *Options) GetTexasOptions() config.Texas

func (*Options) GetVaultOptions

func (o *Options) GetVaultOptions() config.Vault

func (*Options) GetWebProxyOptions

func (o *Options) GetWebProxyOptions() config.Proxy

func (*Options) GetWonderwallOptions

func (o *Options) GetWonderwallOptions() config.Wonderwall

func (*Options) IsAzureratorEnabled

func (o *Options) IsAzureratorEnabled() bool

func (*Options) IsCNRMEnabled

func (o *Options) IsCNRMEnabled() bool

func (*Options) IsGARTolerationEnabled

func (o *Options) IsGARTolerationEnabled() bool

func (*Options) IsIDPortenEnabled

func (o *Options) IsIDPortenEnabled() bool

func (*Options) IsInfluxCredentialsEnabled

func (o *Options) IsInfluxCredentialsEnabled() bool

func (*Options) IsJwkerEnabled

func (o *Options) IsJwkerEnabled() bool

func (*Options) IsKafkaratorEnabled

func (o *Options) IsKafkaratorEnabled() bool

func (*Options) IsLegacyGCP

func (o *Options) IsLegacyGCP() bool

func (*Options) IsLinkerdEnabled

func (o *Options) IsLinkerdEnabled() bool

func (*Options) IsLoginProxyEnabled

func (o *Options) IsLoginProxyEnabled() bool

func (*Options) IsMaskinportenEnabled

func (o *Options) IsMaskinportenEnabled() bool

func (*Options) IsNAVCABundleEnabled

func (o *Options) IsNAVCABundleEnabled() bool

func (*Options) IsNetworkPolicyEnabled

func (o *Options) IsNetworkPolicyEnabled() bool

func (*Options) IsPrometheusOperatorEnabled

func (o *Options) IsPrometheusOperatorEnabled() bool

func (*Options) IsTexasEnabled

func (o *Options) IsTexasEnabled() bool

func (*Options) IsVaultEnabled

func (o *Options) IsVaultEnabled() bool

func (*Options) IsWonderwallEnabled

func (o *Options) IsWonderwallEnabled() bool

func (*Options) ShouldCreateSqlInstanceInSharedVpc

func (o *Options) ShouldCreateSqlInstanceInSharedVpc() bool

func (*Options) SqlInstanceExists

func (o *Options) SqlInstanceExists() bool

func (*Options) SqlInstanceHasPrivateIpInSharedVpc

func (o *Options) SqlInstanceHasPrivateIpInSharedVpc() bool

type SqlInstance

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

Jump to

Keyboard shortcuts

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