reflect feedback

This commit is contained in:
Felix Kunde
2020-08-10 12:35:50 +02:00
parent bf74dee169
commit 7d014d9c2f
6 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -916,7 +916,7 @@ var OperatorConfigCRDResourceValidation = apiextv1beta1.CustomResourceValidation
Items: &apiextv1beta1.JSONSchemaPropsOrArray{
Schema: &apiextv1beta1.JSONSchemaProps{
Type: "object",
Required: []string{"secretname", "passwordkey"},
Required: []string{"secretname", "userkey", "passwordkey"},
Properties: map[string]apiextv1beta1.JSONSchemaProps{
"secretname": {
Type: "string",
-1
View File
@@ -500,7 +500,6 @@ func (c *Cluster) syncSecrets() error {
c.logger.Warningf("secret %q does not contain the role %q", secretSpec.Name, secretUsername)
continue
}
c.Secrets[secret.UID] = secret
c.logger.Debugf("secret %q already exists, fetching its password", util.NameFromMeta(secret.ObjectMeta))
if secretUsername == c.systemUsers[constants.SuperuserKeyName].Name {
secretUsername = constants.SuperuserKeyName
+1 -2
View File
@@ -339,7 +339,6 @@ func TestInfrastructureRoleDefinitions(t *testing.T) {
},
UserKey: "test-user",
PasswordKey: "test-password",
RoleKey: "",
DefaultRoleValue: "test-role",
Template: false,
},
@@ -450,7 +449,7 @@ func TestInfrastructureRoleDefinitions(t *testing.T) {
{
[]*config.InfrastructureRole{},
spec.NamespacedName{},
"userkey: test-user, passwordkey: test-password, rolekey: test-role, template: false",
"userkey: test-user, passwordkey: test-password, rolekey: test-role",
[]*config.InfrastructureRole{},
},
}