app

package
v0.0.0-...-f136377 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationsFolder = "applications"
	CraneFolder        = "crane"
	SecretsFolder      = "secrets"
	KustomizeFolder    = "kustomize"
	BaseFolder         = "base"
	TemplateFolder     = "template"
	ParamsFolder       = "params"
	NoValue            = "__DEFAULT__"
	MandatoryValue     = "__MANDATORY__"
	KustomizationFile  = "kustomization.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppContext

type AppContext struct {
	context.ExporterContext

	AppConfig *config.ApplicationConfig
	AppFolder string
}

func NewAppContextFromConfig

func NewAppContextFromConfig(config *config.Config, connectionStatus *connect.ConnectionStatus) *AppContext

func (*AppContext) BaseKustomizeFolderForNS

func (c *AppContext) BaseKustomizeFolderForNS(namespace string) string

func (*AppContext) ExportFolderForNS

func (c *AppContext) ExportFolderForNS(namespace string) string

func (*AppContext) KustomizationFileFrom

func (c *AppContext) KustomizationFileFrom(folder string) string

func (*AppContext) KustomizeParamsFolderForNS

func (c *AppContext) KustomizeParamsFolderForNS(namespace string) string

func (*AppContext) KustomizeSecretsFolderForNS

func (c *AppContext) KustomizeSecretsFolderForNS(namespace string) string

func (*AppContext) KustomizeTemplateFolderForNS

func (c *AppContext) KustomizeTemplateFolderForNS(namespace string) string

func (*AppContext) KustomizeTemplateParamsFolderForNS

func (c *AppContext) KustomizeTemplateParamsFolderForNS(namespace string) string

func (*AppContext) OutputFolderForNS

func (c *AppContext) OutputFolderForNS(namespace string) string

func (*AppContext) RootFolder

func (c *AppContext) RootFolder() string

func (*AppContext) TmpParamsFolderForNS

func (c *AppContext) TmpParamsFolderForNS(namespace string) string

func (*AppContext) TmpSecretsFolderForNS

func (c *AppContext) TmpSecretsFolderForNS(namespace string) string

func (*AppContext) TransformFolderForNS

func (c *AppContext) TransformFolderForNS(namespace string) string

type AppExporter

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

func NewAppExporterFromConfig

func NewAppExporterFromConfig(config *config.Config, connectionStatus *connect.ConnectionStatus) *AppExporter

func (*AppExporter) Export

func (e *AppExporter) Export()

func (*AppExporter) ExportWithCrane

func (e *AppExporter) ExportWithCrane()

func (*AppExporter) PrepareOutput

func (e *AppExporter) PrepareOutput()

type ClusterRolesInspector

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

func NewClusterRolesInspector

func NewClusterRolesInspector(appContext *AppContext) *ClusterRolesInspector

func (*ClusterRolesInspector) ClusterRoleBindingsForSA

func (c *ClusterRolesInspector) ClusterRoleBindingsForSA(namespace string, serviceAccount string) []authv1T.ClusterRoleBinding

func (*ClusterRolesInspector) LoadClusterRoles

func (c *ClusterRolesInspector) LoadClusterRoles()

func (*ClusterRolesInspector) SecurityContextConstraintsForSA

func (c *ClusterRolesInspector) SecurityContextConstraintsForSA(namespace string, serviceAccount string) []secuv1T.SecurityContextConstraints

type Installer

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

func NewInstallerFromConfig

func NewInstallerFromConfig(appContext *AppContext, clusterRolesInspector *ClusterRolesInspector) *Installer

func (*Installer) BuildKustomizeInstaller

func (i *Installer) BuildKustomizeInstaller()

type Parametrizer

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

func NewParametrizerFromConfig

func NewParametrizerFromConfig(appContext *AppContext) *Parametrizer

func (*Parametrizer) ExposeParameters

func (p *Parametrizer) ExposeParameters()

type SccForSA

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

Jump to

Keyboard shortcuts

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