WIP: first commit

This commit is contained in:
Oleksii Kliukin
2018-06-12 10:52:25 +02:00
committed by Oleksii Kliukin
parent 9cb48e0889
commit 5a1b944fed
11 changed files with 256 additions and 32 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ func (c *Cluster) setStatus(status spec.PostgresStatus) {
_, err = c.KubeClient.CRDREST.Patch(types.MergePatchType).
Namespace(c.Namespace).
Resource(constants.CRDResource).
Resource(constants.PostgresCRDResource).
Name(c.Name).
Body(request).
DoRaw()
+1 -1
View File
@@ -424,7 +424,7 @@ func (c *Cluster) credentialSecretNameForCluster(username string, clusterName st
return c.OpConfig.SecretNameTemplate.Format(
"username", strings.Replace(username, "_", "-", -1),
"cluster", clusterName,
"tprkind", constants.CRDKind,
"tprkind", constants.PostgresCRDKind,
"tprgroup", constants.CRDGroup)
}