1
- // Copyright (c) 2020-2024 Tigera, Inc. All rights reserved.
1
+ // Copyright (c) 2020-2025 Tigera, Inc. All rights reserved.
2
2
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@ import (
18
18
"context"
19
19
"fmt"
20
20
21
+ v1 "github.com/elastic/cloud-on-k8s/v2/pkg/apis/common/v1"
21
22
. "github.com/onsi/ginkgo"
22
23
. "github.com/onsi/ginkgo/extensions/table"
23
24
. "github.com/onsi/gomega"
@@ -359,6 +360,16 @@ var _ = Describe("Elasticsearch rendering tests", func() {
359
360
compareInitContainer (initContainers [4 ], "key-cert-elastic-transport" , []corev1.VolumeMount {
360
361
{Name : "elastic-internal-transport-certificates" , MountPath : certificatemanagement .CSRCMountPath },
361
362
}, false )
363
+ Expect (resultES .Spec .NodeSets [0 ].Config ).To (Equal (& v1.Config {Data : map [string ]interface {}{
364
+ "node.data" : "true" ,
365
+ "node.ingest" : "true" ,
366
+ "node.master" : "true" ,
367
+ "cluster.max_shards_per_node" : 10000 ,
368
+ "ingest.geoip.downloader.enabled" : false ,
369
+ "xpack.security.http.ssl.certificate_authorities" : []string {"/usr/share/elasticsearch/config/http-certs/ca.crt" },
370
+ "xpack.security.transport.ssl.key" : "/usr/share/elasticsearch/config/transport-certs/transport.tls.key" ,
371
+ "xpack.security.transport.ssl.certificate" : "/usr/share/elasticsearch/config/transport-certs/transport.tls.crt" ,
372
+ }}))
362
373
})
363
374
364
375
It ("should render toleration on GKE" , func () {
0 commit comments