utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckResourceOperability added in v0.3.0

func CheckResourceOperability(res client.Object, productName string) error

func GetCodeRepoProviderAndCodeRepoWithURL added in v0.3.0

func GetCodeRepoProviderAndCodeRepoWithURL(ctx context.Context, k8sClient client.Client, repoKey types.NamespacedName, nautesNamespace string) (*nautescrd.CodeRepoProvider, *nautescrd.CodeRepo, error)

func IsBelongsToProduct

func IsBelongsToProduct(res client.Object, productName string) bool

IsBelongsToProduct check resouces is maintain by nautes

func IsLegal

func IsLegal(res client.Object, productName string) (string, bool)

IsLegal used to check resources is availabel for reconcile. It will return two vars, pass or not and the reason if check is failed.

func IsOwner added in v0.3.0

func IsOwner(owner, object client.Object, scheme *runtime.Scheme) bool

IsOwner check k8s resource is belongs to another resource

func RemoveOwner added in v0.3.0

func RemoveOwner(owner, object client.Object, scheme *runtime.Scheme) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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