resource

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HideAll = "$$HIDE_ALL$$"
)

Variables

This section is empty.

Functions

func BuildResources added in v1.13.0

func BuildResources(ctx context.Context, deployType common.DeployType, releaseNamespace string, prevRelResSpecs, newRelResSpecs []*spec.ResourceSpec, patchers []spec.ResourcePatcher, clientFactory kube.ClientFactorier, opts BuildResourcesOptions) ([]*InstallableResource, []*DeletableResource, error)

func CleanUnstruct added in v1.13.0

func InstallableResourceSortByWeightHandler added in v1.13.0

func InstallableResourceSortByWeightHandler(r1, r2 *InstallableResource) bool

func IsSensitive

func IsSensitive(groupKind schema.GroupKind, annotations map[string]string) bool

func KeepOnDelete added in v1.13.0

func KeepOnDelete(meta *spec.ResourceMeta, releaseNamespace string) bool

func ParseSensitivePaths added in v1.8.0

func ParseSensitivePaths(value string) []string

func RedactSensitiveData added in v1.8.0

func RedactSensitiveData(unstruct *unstructured.Unstructured, sensitivePaths []string) *unstructured.Unstructured

func ValidateLocal added in v1.13.0

func ValidateLocal(releaseNamespace string, transformedResources []*InstallableResource) error

func ValidateResourcePolicy added in v1.13.0

func ValidateResourcePolicy(meta *spec.ResourceMeta) error

Types

type BuildResourcesOptions added in v1.13.0

type BuildResourcesOptions struct {
	Remote bool
}

type CleanUnstructOptions added in v1.13.0

type CleanUnstructOptions struct {
	CleanHelmShAnnos        bool
	CleanManagedFiles       bool
	CleanReleaseAnnosLabels bool
	CleanRuntimeData        bool
	CleanWerfIoAnnos        bool
	CleanWerfIoRuntimeAnnos bool
}

type DeletableResource added in v1.13.0

type DeletableResource struct {
	*spec.ResourceMeta

	Ownership    common.Ownership
	KeepOnDelete bool
}

func NewDeletableResource added in v1.13.0

func NewDeletableResource(spec *spec.ResourceSpec, releaseNamespace string, opts DeletableResourceOptions) *DeletableResource

type DeletableResourceOptions added in v1.13.0

type DeletableResourceOptions struct{}

type ExternalDependency added in v1.13.0

type ExternalDependency struct {
	*spec.ResourceMeta
}

type InstallableResource added in v1.13.0

type InstallableResource struct {
	*spec.ResourceSpec

	Ownership                              common.Ownership
	Recreate                               bool
	RecreateOnImmutable                    bool
	DefaultReplicasOnCreation              *int
	DeleteOnSucceeded                      bool
	DeleteOnFailed                         bool
	KeepOnDelete                           bool
	FailMode                               multitrack.FailMode
	FailuresAllowed                        int
	IgnoreReadinessProbeFailsForContainers map[string]time.Duration
	LogRegex                               *regexp.Regexp
	LogRegexesForContainers                map[string]*regexp.Regexp
	NoActivityTimeout                      time.Duration
	ShowLogsOnlyForContainers              []string
	ShowServiceMessages                    bool
	ShowLogsOnlyForNumberOfReplicas        int
	SkipLogs                               bool
	SkipLogsForContainers                  []string
	TrackTerminationMode                   multitrack.TrackTerminationMode
	Weight                                 *int
	ManualInternalDependencies             []*InternalDependency
	AutoInternalDependencies               []*InternalDependency
	ExternalDependencies                   []*ExternalDependency
	DeployConditions                       map[common.On][]common.Stage
}

func NewInstallableResource added in v1.13.0

func NewInstallableResource(res *spec.ResourceSpec, releaseNamespace string, clientFactory kube.ClientFactorier, opts InstallableResourceOptions) (*InstallableResource, error)

type InstallableResourceOptions added in v1.13.0

type InstallableResourceOptions struct {
	Remote bool
}

type InternalDependency added in v1.13.0

type InternalDependency struct {
	*spec.ResourceMatcher

	ResourceState common.ResourceState
}

type SensitiveInfo added in v1.8.0

type SensitiveInfo struct {
	IsSensitive    bool
	SensitivePaths []string
}

func GetSensitiveInfo added in v1.8.0

func GetSensitiveInfo(groupKind schema.GroupKind, annotations map[string]string) SensitiveInfo

func (*SensitiveInfo) FullySensitive added in v1.13.0

func (i *SensitiveInfo) FullySensitive() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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