Categorygithub.com/bygui86/kubernetes-testskubernetesdatabasespostgrescrunchydata-postgres-operatorutil
package
0.0.0-20200105234837-3f85c9d2fd0d
Repository: https://github.com/bygui86/kubernetes-tests.git
Documentation: pkg.go.dev
# Functions
CopySecrets will copy a secret to another secret.
CreateBackrestPVCSnippet.
CreateBackupPVCSnippet generates the PVC definition fragment.
CreatePVCSnippet generates the PVC json snippet.
CreateSecContext will generate the JSON security context fragment for a storage type.
CreateSecret create the secret, user, and primary secrets.
CreateUserSecret will create a new secret holding a user credential.
DrainDeployment will drain a deployment to 0 pods.
ExecPolicy execute a sql policy against a cluster.
GeneratePassword generate a password of a given length.
GenerateRandString generate a rand lowercase string of a given length.
GetBestTarget.
GetLabels ...
Generates an Md5Hash.
No description provided by the author
GetPasswordFromSecret will fetch the username, password from a user secret.
GetPod determines the best target to fail to.
GetPolicySQL returns the SQL string from a policy.
No description provided by the author
No description provided by the author
No description provided by the author
GetSecretPassword ...
NewClient gets a REST connection to Kube.
Patch will patch a particular resource.
PatchClusterCRD patches the pgcluster CRD.
RandStringBytesRmndr ...
RunPsql runs a psql statement.
ScaleDeployment will increase the number of pods in a deployment.
UpdatePolicyLabels ...
UpdateUserSecret updates a user secret with a new password.
No description provided by the author
ValidatePolicy tests to see if a policy exists.
WaitUntilDeploymentIsDeleted timeout := time.Minute.
WaitUntilPod ...podPhase is v1.PodRunningtimeout := time.Minute.
WaitUntilPodIsDeleted timeout := time.Minute.
No description provided by the author