Skip to content

Commit

Permalink
Fix e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Trosien <[email protected]>
  • Loading branch information
otrosien committed Nov 7, 2024
1 parent e463c59 commit 527c06d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions cmd/e2e/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,12 @@ func waitForSTSCondition(t *testing.T, stsName string, conditions ...func(sts *a

func createEDS(name string, spec zv1.ElasticsearchDataSetSpec) error {
myspec := spec.DeepCopy()
myspec.Template.Spec.Containers[0].Env = append(myspec.Template.Spec.Containers[0].Env, v1.EnvVar{
Name: "node.attr.group",
Value: name,
})
for i, env := range myspec.Template.Spec.Containers[0].Env {
if env.Name == "node.attr.group" {
myspec.Template.Spec.Containers[0].Env[i].Value = name
break
}
}
eds := &zv1.ElasticsearchDataSet{
ObjectMeta: metav1.ObjectMeta{
Name: name,
Expand Down
2 changes: 1 addition & 1 deletion e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Simple script for running the e2e test from your local development machine
# against "some" cluster.
# You need to run `kubectl proxy` in a different terminat before running the
# You need to run `kubectl proxy` in a different terminal before running the
# script.

NAMESPACE="${NAMESPACE:-"es-operator-e2e-$(date +%s)"}"
Expand Down

0 comments on commit 527c06d

Please sign in to comment.