Documentation
¶
Index ¶
- func CreateClusterRole(opts types.NamespacedName) rbacv1.ClusterRole
- func CreateClusterRoleBinding(opts types.NamespacedName) rbacv1.ClusterRoleBinding
- func CreateDeployment(gvr schema.GroupVersionResource, nn types.NamespacedName) (appsv1.Deployment, error)
- func CreateRoleBinding(opts types.NamespacedName) rbacv1.RoleBinding
- func CreateServiceAccount(opts types.NamespacedName) corev1.ServiceAccount
- func Deploy(ctx context.Context, opts DeployOptions) error
- func InstallCRD(ctx context.Context, kube client.Client, ...) error
- func InstallClusterRole(ctx context.Context, kube client.Client, obj *rbacv1.ClusterRole) error
- func InstallClusterRoleBinding(ctx context.Context, kube client.Client, obj *rbacv1.ClusterRoleBinding) error
- func InstallDeployment(ctx context.Context, kube client.Client, obj *appsv1.Deployment) error
- func InstallRole(ctx context.Context, kube client.Client, obj *rbacv1.Role) error
- func InstallRoleBinding(ctx context.Context, kube client.Client, obj *rbacv1.RoleBinding) error
- func InstallServiceAccount(ctx context.Context, kube client.Client, obj *corev1.ServiceAccount) error
- func LookupCRD(ctx context.Context, kube client.Client, gvr schema.GroupVersionResource) (bool, error)
- func LookupDeployment(ctx context.Context, kube client.Client, obj *appsv1.Deployment) (bool, bool, error)
- func ToGroupVersionResource(gvk schema.GroupVersionKind) schema.GroupVersionResource
- func Undeploy(ctx context.Context, opts UndeployOptions) error
- func UninstallCRD(ctx context.Context, kube client.Client, gr schema.GroupResource) error
- func UninstallClusterRole(ctx context.Context, opts UninstallOptions) error
- func UninstallClusterRoleBinding(ctx context.Context, opts UninstallOptions) error
- func UninstallDeployment(ctx context.Context, opts UninstallOptions) error
- func UninstallRole(ctx context.Context, opts UninstallOptions) error
- func UninstallRoleBinding(ctx context.Context, opts UninstallOptions) error
- func UninstallServiceAccount(ctx context.Context, opts UninstallOptions) error
- func UnmarshalCRD(dat []byte) (*apiextensionsv1.CustomResourceDefinition, error)
- type DeployOptions
- type UndeployOptions
- type UninstallOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClusterRole ¶
func CreateClusterRole(opts types.NamespacedName) rbacv1.ClusterRole
func CreateClusterRoleBinding ¶
func CreateClusterRoleBinding(opts types.NamespacedName) rbacv1.ClusterRoleBinding
func CreateDeployment ¶
func CreateDeployment(gvr schema.GroupVersionResource, nn types.NamespacedName) (appsv1.Deployment, error)
func CreateRoleBinding ¶
func CreateRoleBinding(opts types.NamespacedName) rbacv1.RoleBinding
func CreateServiceAccount ¶
func CreateServiceAccount(opts types.NamespacedName) corev1.ServiceAccount
func InstallCRD ¶
func InstallCRD(ctx context.Context, kube client.Client, obj *apiextensionsv1.CustomResourceDefinition) error
func InstallClusterRole ¶
func InstallDeployment ¶
func InstallRole ¶
func InstallRoleBinding ¶
func InstallServiceAccount ¶
func LookupDeployment ¶
func ToGroupVersionResource ¶
func ToGroupVersionResource(gvk schema.GroupVersionKind) schema.GroupVersionResource
func UninstallCRD ¶
func UninstallClusterRole ¶
func UninstallClusterRole(ctx context.Context, opts UninstallOptions) error
func UninstallClusterRoleBinding ¶
func UninstallClusterRoleBinding(ctx context.Context, opts UninstallOptions) error
func UninstallDeployment ¶
func UninstallDeployment(ctx context.Context, opts UninstallOptions) error
func UninstallRole ¶
func UninstallRole(ctx context.Context, opts UninstallOptions) error
func UninstallRoleBinding ¶
func UninstallRoleBinding(ctx context.Context, opts UninstallOptions) error
func UninstallServiceAccount ¶
func UninstallServiceAccount(ctx context.Context, opts UninstallOptions) error
func UnmarshalCRD ¶
func UnmarshalCRD(dat []byte) (*apiextensionsv1.CustomResourceDefinition, error)
Types ¶
type DeployOptions ¶
type DeployOptions struct {
KubeClient client.Client
NamespacedName types.NamespacedName
Spec *definitionsv1alpha1.DefinitionSpec
ResourceVersion string
Log func(msg string, keysAndValues ...any)
}
type UndeployOptions ¶
type UndeployOptions struct {
KubeClient client.Client
NamespacedName types.NamespacedName
GVR schema.GroupVersionResource
Log func(msg string, keysAndValues ...any)
}
type UninstallOptions ¶
Click to show internal directories.
Click to hide internal directories.