certificate

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package certificate implement the kubectl-cnpg certificate command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, params Params, dryRun bool, format plugin.OutputFormat) error

Generate generates a Kubernetes secret suitable to allow certificate authentication for a PostgreSQL user

func NewCmd

func NewCmd() *cobra.Command

NewCmd creates the new "certificate" subcommand

Types

type Params

type Params struct {
	Name        string
	Namespace   string
	User        string
	ClusterName string
}

Params are the required information to create an user secret

Jump to

Keyboard shortcuts

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