Skip to content

Commit

Permalink
chore(v2alpha2): change bootstrap file env
Browse files Browse the repository at this point in the history
Signed-off-by: Rory Z <[email protected]>
  • Loading branch information
Rory-Z committed Jun 15, 2023
1 parent 3835012 commit 4334b79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/apps/v2alpha2/add_emqx_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func generateStatefulSet(instance *appsv2alpha2.EMQX) *appsv1.StatefulSet {
},
},
{
Name: "EMQX_DASHBOARD__BOOTSTRAP_USERS_FILE",
Name: "EMQX_API_KEY__BOOTSTRAP_FILE",
Value: `"/opt/emqx/data/bootstrap_user"`,
},
}, instance.Spec.CoreTemplate.Spec.Env...),
Expand Down
2 changes: 1 addition & 1 deletion controllers/apps/v2alpha2/add_emqx_core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func TestGenerateStatefulSet(t *testing.T) {
},
},
{
Name: "EMQX_DASHBOARD__BOOTSTRAP_USERS_FILE",
Name: "EMQX_API_KEY__BOOTSTRAP_FILE",
Value: `"/opt/emqx/data/bootstrap_user"`,
},
{
Expand Down
2 changes: 1 addition & 1 deletion controllers/apps/v2alpha2/add_emqx_repl.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func generatePodTemplateSpec(instance *appsv2alpha2.EMQX) corev1.PodTemplateSpec
},
},
{
Name: "EMQX_DASHBOARD__BOOTSTRAP_USERS_FILE",
Name: "EMQX_API_KEY__BOOTSTRAP_FILE",
Value: `"/opt/emqx/data/bootstrap_user"`,
},
}, instance.Spec.ReplicantTemplate.Spec.Env...),
Expand Down

0 comments on commit 4334b79

Please sign in to comment.