config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	KubesealConfig *KubesealConfig `json:"kubeseal"`
	Secrets        []*Secret       `json:"secrets"`
}

Config represents the configuration for the sealed-secrets-updater

func New

func New(path string) (*Config, error)

New returns a new Config given a path to a config file

func (*Config) Validate

func (c *Config) Validate() error

Validate validates the config with extra validations that are not covered by the JSON schema

type KubesealConfig

type KubesealConfig struct {
	ControllerName      string `json:"controllerName"`
	ControllerNamespace string `json:"controllerNamespace"`
	Certificate         string `json:"certificate,omitempty"`
}

KubesealConfig represents the configuration for the kubeseal command

type Metadata

type Metadata struct {
	Labels      map[string]string `json:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

Metadata represents a secret metadata

type Secret

type Secret struct {
	Name      string         `json:"name"`
	Namespace string         `json:"namespace"`
	Input     *input.Input   `json:"input"`
	Output    *output.Output `json:"output"`
	Metadata  *Metadata      `json:"metadata"`
}

Secret represents the configuration for a secret

Jump to

Keyboard shortcuts

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