mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:27:32 +00:00
fix(setup): execute s54 (#9849)
# Which Problems Are Solved
Step 54 was not executed during setup.
# How the Problems Are Solved
Added the step to setup jobs
# Additional Changes
none
# Additional Context
- the step was added in https://github.com/zitadel/zitadel/pull/9837
- thanks to @zhirschtritt for raising this.
(cherry picked from commit a626678004
)
This commit is contained in:
@@ -150,6 +150,7 @@ type Steps struct {
|
|||||||
s51IDPTemplate6RootCA *IDPTemplate6RootCA
|
s51IDPTemplate6RootCA *IDPTemplate6RootCA
|
||||||
s52IDPTemplate6LDAP2 *IDPTemplate6LDAP2
|
s52IDPTemplate6LDAP2 *IDPTemplate6LDAP2
|
||||||
s53InitPermittedOrgsFunction *InitPermittedOrgsFunction53
|
s53InitPermittedOrgsFunction *InitPermittedOrgsFunction53
|
||||||
|
s54InstancePositionIndex *InstancePositionIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
func MustNewSteps(v *viper.Viper) *Steps {
|
func MustNewSteps(v *viper.Viper) *Steps {
|
||||||
|
@@ -212,6 +212,7 @@ func Setup(ctx context.Context, config *Config, steps *Steps, masterKey string)
|
|||||||
steps.s51IDPTemplate6RootCA = &IDPTemplate6RootCA{dbClient: dbClient}
|
steps.s51IDPTemplate6RootCA = &IDPTemplate6RootCA{dbClient: dbClient}
|
||||||
steps.s52IDPTemplate6LDAP2 = &IDPTemplate6LDAP2{dbClient: dbClient}
|
steps.s52IDPTemplate6LDAP2 = &IDPTemplate6LDAP2{dbClient: dbClient}
|
||||||
steps.s53InitPermittedOrgsFunction = &InitPermittedOrgsFunction53{dbClient: dbClient}
|
steps.s53InitPermittedOrgsFunction = &InitPermittedOrgsFunction53{dbClient: dbClient}
|
||||||
|
steps.s54InstancePositionIndex = &InstancePositionIndex{dbClient: dbClient}
|
||||||
|
|
||||||
err = projection.Create(ctx, dbClient, eventstoreClient, config.Projections, nil, nil, nil)
|
err = projection.Create(ctx, dbClient, eventstoreClient, config.Projections, nil, nil, nil)
|
||||||
logging.OnError(err).Fatal("unable to start projections")
|
logging.OnError(err).Fatal("unable to start projections")
|
||||||
@@ -254,6 +255,7 @@ func Setup(ctx context.Context, config *Config, steps *Steps, masterKey string)
|
|||||||
steps.s51IDPTemplate6RootCA,
|
steps.s51IDPTemplate6RootCA,
|
||||||
steps.s52IDPTemplate6LDAP2,
|
steps.s52IDPTemplate6LDAP2,
|
||||||
steps.s53InitPermittedOrgsFunction,
|
steps.s53InitPermittedOrgsFunction,
|
||||||
|
steps.s54InstancePositionIndex,
|
||||||
} {
|
} {
|
||||||
setupErr = executeMigration(ctx, eventstoreClient, step, "migration failed")
|
setupErr = executeMigration(ctx, eventstoreClient, step, "migration failed")
|
||||||
if setupErr != nil {
|
if setupErr != nil {
|
||||||
|
Reference in New Issue
Block a user