Documentation ¶
Index ¶
- func CheckResourceOperability(res client.Object, productName string) error
- func GetClusterByRuntime(ctx context.Context, k8sClient client.Client, nautesNamespace string, ...) (*nautescrd.Cluster, error)
- func GetCodeRepoProviderAndCodeRepoWithURL(ctx context.Context, k8sClient client.Client, repoKey types.NamespacedName, ...) (*nautescrd.CodeRepoProvider, *nautescrd.CodeRepo, error)
- func GetCodeRepoURL(ctx context.Context, k8sClient client.Client, codeRepo nautescrd.CodeRepo, ...) (string, error)
- func GetProductNameByIDInCluster(cluster nautescrd.Cluster, productID string) string
- func GetProductNamespacesInCluster(ctx context.Context, k8sClient client.Client, product, cluster string) ([]string, error)
- func GetReservedNamespacesByProduct(cluster nautescrd.Cluster, productID string) []string
- func GetURLsInCluster(ctx context.Context, k8sClient client.Client, product, cluster string, ...) ([]string, error)
- func IsBelongsToProduct(res client.Object, productName string) bool
- func IsLegal(res client.Object, productName string) (string, bool)
- func IsOwner(owner, object client.Object, scheme *runtime.Scheme) bool
- func RemoveOwner(owner, object client.Object, scheme *runtime.Scheme) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResourceOperability ¶ added in v0.3.0
func GetClusterByRuntime ¶ added in v0.3.6
func GetCodeRepoProviderAndCodeRepoWithURL ¶ added in v0.3.0
func GetCodeRepoURL ¶ added in v0.3.6
func GetProductNameByIDInCluster ¶ added in v0.3.6
func GetProductNamespacesInCluster ¶ added in v0.3.6
func GetReservedNamespacesByProduct ¶ added in v0.3.6
func GetURLsInCluster ¶ added in v0.3.6
func IsBelongsToProduct ¶
IsBelongsToProduct check resouces is maintain by nautes
func IsLegal ¶
IsLegal used to check resources is availabel for reconcile. It will return two vars, pass or not and the reason if check is failed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.