cnpg

package
v5.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CnpgDeploymentName = "cnpg-controller-manager"
)

Variables

View Source
var (
	CnpgAPIGroup   = getCnpgAPIGroup()
	CnpgAPIVersion = CnpgAPIGroup + "/v1"
)

Functions

func CmdCNPG

func CmdCNPG() *cobra.Command

CmdCNPG returns a CLI command

func CmdInstall

func CmdInstall() *cobra.Command

CmdInstall returns a CLI command

func CmdStatus

func CmdStatus() *cobra.Command

CmdStatus returns a CLI command

func CmdUninstall

func CmdUninstall() *cobra.Command

CmdUninstall returns a CLI command

func CmdYaml

func CmdYaml() *cobra.Command

CmdYaml returns a CLI command

func GetCnpgClusterObj

func GetCnpgClusterObj(namespace string, name string) *cnpgv1.Cluster

GetCnpgCluster returns a new CNPG cluster resource

func GetCnpgImageCatalogObj

func GetCnpgImageCatalogObj(namespace string, name string) *cnpgv1.ImageCatalog

func RunInstall

func RunInstall(cmd *cobra.Command, args []string)

RunInstall runs the CloudNativePG operator installation

func RunStatus

func RunStatus(cmd *cobra.Command, args []string)

RunStatus runs a CLI command

func RunUninstall

func RunUninstall(cmd *cobra.Command, args []string)

RunUninstall runs a CLI command to uninstall CloudNativePG operator

func RunUpgrade

func RunUpgrade(cmd *cobra.Command, args []string)

RunUpgrade runs the CloudNativePG operator installation

func RunYaml

func RunYaml(cmd *cobra.Command, args []string)

RunYaml runs a CLI command to print all CloudNativePG resources

Types

type CnpgResources

type CnpgResources struct {
	CnpgOperatorDeployment         *appsv1.Deployment
	CnpgManagerClusterRole         *rbacv1.ClusterRole
	CnpgManagerClusterRoleBinding  *rbacv1.ClusterRoleBinding
	CnpgManagerRole                *rbacv1.Role
	CnpgManagerRoleBinding         *rbacv1.RoleBinding
	ConfigMap                      *corev1.ConfigMap
	MutatingWebhookConfiguration   *admissionv1.MutatingWebhookConfiguration
	WebhooksService                *corev1.Service
	ValidatingWebhookConfiguration *admissionv1.ValidatingWebhookConfiguration
	ServiceAccount                 *corev1.ServiceAccount
	CRDs                           []*apiextv1.CustomResourceDefinition

	// cluster role and binding for the webhooks permissions
	CnpgWebhooksClusterRole        *rbacv1.ClusterRole
	CnpgWebhooksClusterRoleBinding *rbacv1.ClusterRoleBinding
}

func LoadCnpgResources

func LoadCnpgResources() (*CnpgResources, error)

LoadCnpgResources loads all CloudNativePG resources from the embedded manifests

Jump to

Keyboard shortcuts

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