Documentation ¶
Index ¶
- func New(res any) kio.Reader
- func NewJsonnetReader(js *konjurev1beta2.Jsonnet) kio.Reader
- type Executor
- type FileReader
- type Filter
- type GitReader
- type HTTPReader
- type HelmReader
- type JsonnetReader
- type KubernetesReader
- type KustomizeReader
- type Option
- func WithDefaultInputStream(defaultReader io.Reader) Option
- func WithDefaultTypes(types ...string) Option
- func WithKubeconfig(kubeconfig string) Option
- func WithKubectlExecutor(executor Executor) Option
- func WithKustomizeExecutor(executor Executor) Option
- func WithRecursiveDirectories(recurse bool) Option
- func WithWorkingDirectory(dir string) Option
- func WithoutKindExpansion(kinds ...string) Option
- type ResourceReader
- type Runtime
- type SecretReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJsonnetReader ¶
func NewJsonnetReader(js *konjurev1beta2.Jsonnet) kio.Reader
Types ¶
type FileReader ¶
type Filter ¶
type Filter struct { // The number of iterations to perform when expanding Konjure resources. Depth int // Configuration options for the readers. ReaderOptions []Option }
Filter is a KYAML Filter that maps Konjure resource specifications to KYAML Readers, then reads and flattens the resulting RNodes into the final result. Due to the recursive nature of this filter, the depth (number of allowed recursive iterations) must be specified; the default value of 0 is effectively a no-op.
type GitReader ¶
type GitReader struct { konjurev1beta2.Git // contains filtered or unexported fields }
type HTTPReader ¶
type HTTPReader struct { konjurev1beta2.HTTP Client *http.Client }
type HelmReader ¶ added in v0.3.3
type HelmReader struct { konjurev1beta2.Helm Runtime // The path to the Helm repository cache. Corresponds to the `helm --repository-cache` option. RepositoryCache string }
type JsonnetReader ¶
type JsonnetReader struct { JsonnetBundlerPackageHome string FileImporter jsonnet.FileImporter MakeVM func() *jsonnet.VM Filename string Snippet string }
type KubernetesReader ¶ added in v0.3.3
type KubernetesReader struct { konjurev1beta2.Kubernetes Runtime // Override the default path to the kubeconfig file. Kubeconfig string // Override the default kubeconfig context. Context string // The list of default types to use if none are specified. DefaultTypes []string }
type KustomizeReader ¶ added in v0.3.3
type KustomizeReader struct { konjurev1beta2.Kustomize Runtime }
type Option ¶
Option is used to configure or decorate a reader.
func WithDefaultInputStream ¶
WithDefaultInputStream overrides the default input stream of stdin.
func WithDefaultTypes ¶ added in v0.4.1
WithDefaultTypes controls the default types to fetch when none are specified.
func WithKubeconfig ¶ added in v0.3.3
WithKubeconfig controls the default path of the kubeconfig file.
func WithKubectlExecutor ¶ added in v0.3.3
WithKubectlExecutor controls the alternate executor for kubectl.
func WithKustomizeExecutor ¶ added in v0.3.3
WithKustomizeExecutor controls the alternate executor for kustomize.
func WithRecursiveDirectories ¶
WithRecursiveDirectories controls the behavior for traversing directories.
func WithWorkingDirectory ¶
WithWorkingDirectory sets the base directory to resolve relative paths against.
func WithoutKindExpansion ¶ added in v0.4.7
WithoutKindExpansion disables specific Konjure kinds from being expanded.
type ResourceReader ¶
type ResourceReader struct { // The list of resource specifications to generate Konjure resources from. konjurev1beta2.Resource // The byte stream of (possibly non-Konjure) resources to read give the // resource specification of "-". Defaults to `os.Stdin`. Reader io.Reader }
ResourceReader generates Konjure resource nodes by parsing the configured resource specifications.
type Runtime ¶ added in v0.3.3
type Runtime struct { // Bin can be configured to override the default path to the binary. Bin string // Executor can be set to change how the command is executed. If left `nil`, // commands will execute via their `Cmd.Output` function. Executor Executor }
Runtime contains the base configuration for creating `exec.Cmd` instances.
type SecretReader ¶
type SecretReader struct {
konjurev1beta2.Secret
}