Documentation
¶
Overview ¶
Package render turns resolved Argo CD Application sources into Kubernetes manifests using in-process directory, Kustomize, Helm, and plugin paths.
Index ¶
- Variables
- func CanonicalOCIChartRepository(repository string) (string, bool)
- func ChartRepositoryKind(repository string, ociRepositories map[string]bool) chart.RepositoryKind
- func OCIChartRepositoryEnabled(repository string, repositories map[string]bool) bool
- func ValidateKustomizeBuildOptions(options []string) error
- type DirectoryRenderer
- type HelmRenderer
- type KustomizeRenderer
- type Manifest
- type PluginConfig
- type PluginRenderer
- type PluginRequest
- type Provider
- type RenderOptions
- type Renderer
- type ResolvedSource
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedPlugin = errors.New("unsupported config management plugin")
Functions ¶
func ChartRepositoryKind ¶
func ChartRepositoryKind(repository string, ociRepositories map[string]bool) chart.RepositoryKind
func ValidateKustomizeBuildOptions ¶ added in v0.1.3
Types ¶
type DirectoryRenderer ¶
type DirectoryRenderer struct{}
func (DirectoryRenderer) Render ¶
func (DirectoryRenderer) Render(ctx context.Context, source ResolvedSource, opts RenderOptions) ([]Manifest, []diagnostic.Diagnostic, error)
type HelmRenderer ¶
type HelmRenderer struct{}
func (HelmRenderer) Render ¶
func (HelmRenderer) Render(ctx context.Context, source ResolvedSource, opts RenderOptions) ([]Manifest, []diagnostic.Diagnostic, error)
type KustomizeRenderer ¶
type KustomizeRenderer struct{}
func (KustomizeRenderer) Render ¶
func (KustomizeRenderer) Render(ctx context.Context, source ResolvedSource, opts RenderOptions) ([]Manifest, []diagnostic.Diagnostic, error)
type Manifest ¶
type Manifest struct {
SourceIndex int
SourceName string
Path string
Object *unstructured.Unstructured
}
type PluginConfig ¶
type PluginConfig struct {
Name string
Env argoappv1.Env
Parameters argoappv1.ApplicationSourcePluginParameters
}
type PluginRenderer ¶
type PluginRenderer interface {
RenderPlugin(ctx context.Context, request PluginRequest) ([]Manifest, []diagnostic.Diagnostic, error)
}
type PluginRequest ¶
type PluginRequest struct {
AppName string
AppNamespace string
Project string
Namespace string
Source ResolvedSource
Plugin PluginConfig
RefRoots map[string]string
RefSources map[string]ResolvedSource
KubeVersion string
APIVersions []string
}
type Provider ¶
type Provider interface {
RenderSource(ctx context.Context, source ResolvedSource, opts RenderOptions) ([]Manifest, []diagnostic.Diagnostic, error)
}
type RenderOptions ¶
type RenderOptions struct {
AppName string
AppNamespace string
SourceIndex int
SourceName string
Project string
Namespace string
EnableAVPCompat bool
QuietAVPCompat bool
EnablePlugins bool
Plugin *PluginConfig
KubeVersion string
APIVersions []string
BuildOptions []string
Kustomize *argoappv1.ApplicationSourceKustomize
Jsonnet argoappv1.ApplicationSourceJsonnet
ArgoEnv argoappv1.Env
RefRoots map[string]string
RefSources map[string]ResolvedSource
ReleaseName string
ValuesObject map[string]any
ValuesMergeMode string
ValueFiles []string
ValueFilesBaseDir string
ValueFilesBoundaryRoot string
IgnoreMissingValueFiles bool
HelmParameters []argoappv1.HelmParameter
HelmFileParameters []argoappv1.HelmFileParameter
HelmValueFileSchemes []string
HelmValueFileSchemesSet bool
SkipSchemaValidation bool
PassCredentials bool
DirectoryRecurse bool
DirectoryInclude string
DirectoryExclude string
ChartCacheDir string
OfflineCharts bool
RefreshCharts bool
ChartForbiddenRoots []string
ChartCredentials chart.ChartCredentials
ChartAcquirer chart.Acquirer
OCIChartRepositories map[string]bool
RemoteResourceCacheDir string
OfflineRemoteResources bool
RefreshRemoteResources bool
RemoteResourceForbiddenRoots []string
RemoteResourceCredentials remote.Credentials
RemoteResourceGitCredentials remote.GitCredentials
RemoteResourceAcquirer remote.Acquirer
CacheEventRecorder *cacheevent.Recorder
IncludeCRDs bool
IncludeCRDsSet bool
SkipHooks bool
SkipTests bool
}
type Renderer ¶
type Renderer interface {
Render(ctx context.Context, source ResolvedSource, opts RenderOptions) ([]Manifest, []diagnostic.Diagnostic, error)
}
type ResolvedSource ¶
Source Files
¶
- chart_repository.go
- directory.go
- directory_jsonnet.go
- doc.go
- helm.go
- helm_dependencies.go
- helm_split.go
- kustomize.go
- kustomize_build_options.go
- kustomize_graph_validate.go
- kustomize_remote.go
- kustomize_source_options.go
- kustomize_workspace.go
- kustomize_workspace_copy.go
- kustomize_workspace_remote.go
- kustomize_workspace_rewrite.go
- kustomize_workspace_validate.go
- renderer.go
Click to show internal directories.
Click to hide internal directories.