Documentation
¶
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
}
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
Project string
Namespace string
Plugin *PluginConfig
KubeVersion string
APIVersions []string
BuildOptions []string
RefRoots map[string]string
RefSources map[string]ResolvedSource
ReleaseName string
ValuesObject map[string]any
ValuesMergeMode string
ValueFiles []string
ValueFilesBaseDir string
ValueFilesBoundaryRoot string
IgnoreMissingValueFiles bool
DirectoryRecurse bool
DirectoryInclude string
DirectoryExclude string
ChartCacheDir string
OfflineCharts bool
RefreshCharts bool
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)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.