Remove syncSecrets for cluster creation

Since now it's done before through the plan
This commit is contained in:
erthalion 2018-09-12 15:45:48 +02:00
parent 5563078a12
commit e588fddde3
1 changed files with 2 additions and 4 deletions

View File

@ -209,6 +209,7 @@ func (c *Cluster) PlanForCreate() (plan []Action) {
return plan
}
// TODO: mind the secrets of the deleted/new users
func (c *Cluster) PlanForSecrets() (plan []Action) {
var msg string
secrets := c.generateUserSecrets()
@ -290,10 +291,7 @@ func (c *Cluster) Create() error {
}
c.logger.Infof("users have been initialized")
if err = c.syncSecrets(); err != nil {
return fmt.Errorf("could not create secrets: %v", err)
}
c.logger.Infof("secrets have been successfully created")
// do not sync secrets since they were syncronized before with the plan
if c.PodDisruptionBudget != nil {
return fmt.Errorf("pod disruption budget already exists in the cluster")