render

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedPlugin = errors.New("unsupported config management plugin")

Functions

func CanonicalOCIChartRepository

func CanonicalOCIChartRepository(repository string) (string, bool)

func ChartRepositoryKind

func ChartRepositoryKind(repository string, ociRepositories map[string]bool) chart.RepositoryKind

func OCIChartRepositoryEnabled

func OCIChartRepositoryEnabled(repository string, repositories map[string]bool) bool

Types

type DirectoryRenderer

type DirectoryRenderer struct{}

func (DirectoryRenderer) Render

type HelmRenderer

type HelmRenderer struct{}

func (HelmRenderer) Render

type KustomizeRenderer

type KustomizeRenderer struct{}

func (KustomizeRenderer) Render

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)
}

type ResolvedSource

type ResolvedSource struct {
	RepoRoot       string
	Path           string
	Chart          string
	RepoURL        string
	TargetRevision string
}

Jump to

Keyboard shortcuts

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