Documentation
¶
Index ¶
- Constants
- Variables
- func CmdCNPG() *cobra.Command
- func CmdInstall() *cobra.Command
- func CmdStatus() *cobra.Command
- func CmdUninstall() *cobra.Command
- func CmdYaml() *cobra.Command
- func GetCnpgClusterObj(namespace string, name string) *cnpgv1.Cluster
- func GetCnpgImageCatalogObj(namespace string, name string) *cnpgv1.ImageCatalog
- func RunInstall(cmd *cobra.Command, args []string)
- func RunStatus(cmd *cobra.Command, args []string)
- func RunUninstall(cmd *cobra.Command, args []string)
- func RunUpgrade(cmd *cobra.Command, args []string)
- func RunYaml(cmd *cobra.Command, args []string)
- type CnpgResources
Constants ¶
View Source
const (
CnpgDeploymentName = "cnpg-controller-manager"
)
Variables ¶
View Source
var ( CnpgAPIGroup = getCnpgAPIGroup() CnpgAPIVersion = CnpgAPIGroup + "/v1" )
Functions ¶
func GetCnpgClusterObj ¶
GetCnpgCluster returns a new CNPG cluster resource
func GetCnpgImageCatalogObj ¶
func GetCnpgImageCatalogObj(namespace string, name string) *cnpgv1.ImageCatalog
func RunInstall ¶
RunInstall runs the CloudNativePG operator installation
func RunUninstall ¶
RunUninstall runs a CLI command to uninstall CloudNativePG operator
func RunUpgrade ¶
RunUpgrade runs the CloudNativePG operator installation
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
Click to show internal directories.
Click to hide internal directories.