manifestmerge

package
v0.0.0-...-8203151 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPayloadFeatureGatePath = filepath.Join("payload-manifests", "featuregates")
)

Functions

func AllKnownFeatureSets

func AllKnownFeatureSets(payloadFeatureGatePath string) (sets.String, error)

func NewGenerator

func NewGenerator(opts Options) generation.Generator

NewGenerator builds a new schemapatch generator.

Types

type AllFeatureGates

type AllFeatureGates struct{}

func (*AllFeatureGates) UseManifest

func (*AllFeatureGates) UseManifest([]byte) (bool, error)

type AndCRDFilter

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

func (*AndCRDFilter) String

func (f *AndCRDFilter) String() string

func (*AndCRDFilter) UseCRD

func (f *AndCRDFilter) UseCRD(metadata crdForFeatureSet) bool

type AndManifestFilter

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

func (*AndManifestFilter) String

func (f *AndManifestFilter) String() string

func (*AndManifestFilter) UseManifest

func (f *AndManifestFilter) UseManifest(data []byte) (bool, error)

type CRDFilter

type CRDFilter interface {
	UseCRD(metadata crdForFeatureSet) bool
}

type ClusterProfileFilter

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

func (*ClusterProfileFilter) String

func (f *ClusterProfileFilter) String() string

func (*ClusterProfileFilter) UseCRD

func (f *ClusterProfileFilter) UseCRD(metadata crdForFeatureSet) bool

func (*ClusterProfileFilter) UseManifest

func (f *ClusterProfileFilter) UseManifest(data []byte) (bool, error)

type CustomNoUpgrade

type CustomNoUpgrade struct{}

func (*CustomNoUpgrade) String

func (f *CustomNoUpgrade) String() string

func (*CustomNoUpgrade) UseManifest

func (*CustomNoUpgrade) UseManifest([]byte) (bool, error)

type Everything

type Everything struct {
}

func (*Everything) String

func (f *Everything) String() string

func (*Everything) UseCRD

func (f *Everything) UseCRD(metadata crdForFeatureSet) bool

func (*Everything) UseManifest

func (f *Everything) UseManifest(data []byte) (bool, error)

type FeatureSetFilter

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

func (*FeatureSetFilter) String

func (f *FeatureSetFilter) String() string

func (*FeatureSetFilter) UseCRD

func (f *FeatureSetFilter) UseCRD(metadata crdForFeatureSet) bool

func (*FeatureSetFilter) UseManifest

func (f *FeatureSetFilter) UseManifest(data []byte) (bool, error)

type ForFeatureGates

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

func (*ForFeatureGates) String

func (f *ForFeatureGates) String() string

func (*ForFeatureGates) UseManifest

func (f *ForFeatureGates) UseManifest(data []byte) (bool, error)

type HasData

type HasData struct {
}

func (*HasData) String

func (f *HasData) String() string

func (*HasData) UseCRD

func (f *HasData) UseCRD(metadata crdForFeatureSet) bool

type ManifestFilter

type ManifestFilter interface {
	UseManifest([]byte) (bool, error)
}

func FilterForFeatureSet

func FilterForFeatureSet(payloadFeatureGatePath, clusterProfile, featureSetName string) (ManifestFilter, error)

type Options

type Options struct {
	// Disabled indicates whether the schemapatch generator is disabled or not.
	// This default to false as the schemapatch generator is enabled by default.
	Disabled bool

	// Verify determines whether the generator should verify the content instead
	// of updating the generated file.
	Verify bool

	// PayloadFeatureGatePath is a specified path for the featuregate CRD to inform whether particular
	// gates are off or on.
	// If not set, the default "payload-manifests/featuregates" is used.
	PayloadFeatureGatePath string
}

Options contains the configuration required for the schemapatch generator.

Jump to

Keyboard shortcuts

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