config

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LifecycleConfigName = "lifecycle-image"
	LifecycleConfigKey  = "image"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.13.0

type Config struct {
	SystemNamespace      string `json:"systemNamespace"`
	SystemServiceAccount string `json:"systemServiceAccount"`

	EnablePriorityClasses     bool   `json:"enablePriorityClasses"`
	MaximumPlatformApiVersion string `json:"maximumPlatformApiVersion"`
	SshTrustUnknownHosts      bool   `json:"sshTrustUnknownHosts"`
}

type FeatureFlags added in v0.13.0

type FeatureFlags struct {
	InjectedSidecarSupport  bool `json:"injectedSidecarSupport"`
	GenerateSlsaAttestation bool `json:"generateSlsaAttestation"`
}

type Images added in v0.13.0

type Images struct {
	BuildInitImage         string `json:"buildInitImage"`
	BuildInitWindowsImage  string `json:"buildInitWindowsImage"`
	BuildWaiterImage       string `json:"buildWaiterImage"`
	CompletionImage        string `json:"completionImage"`
	CompletionWindowsImage string `json:"completionWindowsImage"`
	RebaseImage            string `json:"rebaseImage"`
}

func (*Images) ToBuildPodImages added in v0.13.0

func (i *Images) ToBuildPodImages() v1alpha2.BuildPodImages

TODO: evaluate if we can move the lifecycle_provider stuff out of this config package Ideally v1alpha2.BuildPodImages should either just use config.Images directly or be an alias to it. However this doesn't work right now because lifecycle_provider.go imports pkg/cnb which imports pkg/apis/build/v1alpha2 and thus creating an import cycle.

type LifecycleProvider

type LifecycleProvider struct {
	// contains filtered or unexported fields
}

func NewLifecycleProvider

func NewLifecycleProvider(client RegistryClient, keychainFactory registry.KeychainFactory) *LifecycleProvider

func (*LifecycleProvider) AddEventHandler

func (l *LifecycleProvider) AddEventHandler(handler func())

func (*LifecycleProvider) LayerForOS

func (l *LifecycleProvider) LayerForOS(os string) (v1.Layer, cnb.LifecycleMetadata, error)

func (*LifecycleProvider) Metadata added in v0.13.0

func (l *LifecycleProvider) Metadata() (cnb.LifecycleMetadata, error)

func (*LifecycleProvider) UpdateImage

func (l *LifecycleProvider) UpdateImage(cm *corev1.ConfigMap) error

type RegistryClient

type RegistryClient interface {
	Fetch(keychain authn.Keychain, repoName string) (v1.Image, string, error)
}

Jump to

Keyboard shortcuts

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