configuration

package
v0.0.0-...-fc6a387 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHealthStatus

func CheckHealthStatus(status []condition.Condition) bool

func DeleteConfiguration

func DeleteConfiguration(ctx context.Context, urls string, dynamicClient *dynamic.DynamicClient, logger *zap.SugaredLogger) error

func GetConfiguration

func GetConfiguration(ctx context.Context, logger *zap.SugaredLogger, sourceDynamicClient dynamic.Interface, paramsConfiguration kube.ResourceParams) ([]unstructured.Unstructured, error)

func GetConfigurations

func GetConfigurations(ctx context.Context, dynamicClient dynamic.Interface) []crossv1.Configuration

func HealthCheck

func HealthCheck(ctx context.Context, dc dynamic.Interface, links string, wait bool, timeoutChan <-chan time.Time, logger *zap.SugaredLogger) error

RunConfigurationHealthCheck performs a health check on configurations defined by the links string.

func MoveConfigurations

func MoveConfigurations(ctx context.Context, logger *zap.SugaredLogger, destClientset dynamic.Interface, configurations []unstructured.Unstructured, paramsConfiguration kube.ResourceParams) error

func ResourceId

func ResourceId() schema.GroupVersionResource

func Watch

func Watch(ctx context.Context, dc *dynamic.DynamicClient, config *rest.Config, logger *zap.SugaredLogger, path string) error

Types

type Configuration

type Configuration struct {
	Name  string
	Image regv1.Image
	packages.Package
}

func New

func New(name string) *Configuration

func (*Configuration) Apply

func (c *Configuration) Apply(ctx context.Context, config *rest.Config, logger *zap.SugaredLogger) error

func (*Configuration) LoadDirectory

func (c *Configuration) LoadDirectory(ctx context.Context, config *rest.Config, logger *zap.SugaredLogger, path string) error

Load configuration package from directory

func (*Configuration) LoadPathArchive

func (c *Configuration) LoadPathArchive(ctx context.Context, config *rest.Config, logger *zap.SugaredLogger, path string) error

Load configuration package from path

func (*Configuration) LoadStdinArchive

func (c *Configuration) LoadStdinArchive(ctx context.Context, config *rest.Config, logger *zap.SugaredLogger, stream *bufio.Reader) error

Load configuration package from STDIN

func (*Configuration) UpgradeConfiguration

func (c *Configuration) UpgradeConfiguration(ctx context.Context, config *rest.Config, dc *dynamic.DynamicClient) error

Jump to

Keyboard shortcuts

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