apiutil

package
v0.0.0-...-990bd2d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultClusterTemplate

func GetDefaultClusterTemplate(ctx context.Context, c client.Client) (*dockyardsv1.ClusterTemplate, error)

func GetDefaultRelease

func GetDefaultRelease(ctx context.Context, c client.Client, releaseType dockyardsv1.ReleaseType) (*dockyardsv1.Release, error)

func GetNamespaceOrganization

func GetNamespaceOrganization(ctx context.Context, c client.Client, namespace string) (*dockyardsv1.Organization, error)

func GetOwnerCluster

func GetOwnerCluster(ctx context.Context, c client.Client, o client.Object) (*dockyardsv1.Cluster, error)

func GetOwnerDeployment

func GetOwnerDeployment(ctx context.Context, c client.Client, o client.Object) (*dockyardsv1.Deployment, error)

func GetOwnerNodePool

func GetOwnerNodePool(ctx context.Context, c client.Client, o client.Object) (*dockyardsv1.NodePool, error)

func HasExpired

func HasExpired(expirable Expirable) bool

func IgnoreClientError

func IgnoreClientError(err error) error

func IgnoreConflict

func IgnoreConflict(err error) error

func IgnoreForbidden

func IgnoreForbidden(err error) error

func IgnoreInternalError

func IgnoreInternalError(err error) error

func IgnoreIsInvalid

func IgnoreIsInvalid(err error) error

func IsFeatureEnabled

func IsFeatureEnabled(ctx context.Context, c client.Reader, featureName featurenames.FeatureName, inNamespace string) (bool, error)

func IsSubjectAllowed

func IsSubjectAllowed(ctx context.Context, c client.Client, subject string, resourceAttributes *authorizationv1.ResourceAttributes) (bool, error)

func SetWorkloadReference

func SetWorkloadReference(references *[]dockyardsv1.WorkloadReference, newReference dockyardsv1.WorkloadReference) bool

Types

type Expirable

type Expirable interface {
	GetExpiration() *metav1.Time
}

Jump to

Keyboard shortcuts

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