File tree 2 files changed +4
-7
lines changed
pkg/controller/elasticsearch/nodespec
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import (
12
12
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
13
13
14
14
commonv1 "github.com/elastic/cloud-on-k8s/v2/pkg/apis/common/v1"
15
- "github.com/elastic/cloud-on-k8s/v2/pkg/controller/common/annotation"
16
15
"github.com/elastic/cloud-on-k8s/v2/pkg/controller/common/defaults"
17
16
"github.com/elastic/cloud-on-k8s/v2/pkg/controller/elasticsearch/label"
18
17
"github.com/elastic/cloud-on-k8s/v2/pkg/controller/elasticsearch/settings"
40
39
corev1 .ResourceMemory : DefaultMemoryLimits ,
41
40
},
42
41
}
43
-
44
- // DefaultAnnotations are the default annotations for the Elasticsearch pods
45
- DefaultAnnotations = map [string ]string {
46
- annotation .FilebeatModuleAnnotation : "elasticsearch" ,
47
- }
48
42
)
49
43
50
44
// DefaultEnvVars are environment variables injected into Elasticsearch pods.
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import (
14
14
"k8s.io/apimachinery/pkg/types"
15
15
16
16
esv1 "github.com/elastic/cloud-on-k8s/v2/pkg/apis/elasticsearch/v1"
17
+ "github.com/elastic/cloud-on-k8s/v2/pkg/controller/common/annotation"
17
18
"github.com/elastic/cloud-on-k8s/v2/pkg/controller/common/container"
18
19
"github.com/elastic/cloud-on-k8s/v2/pkg/controller/common/defaults"
19
20
"github.com/elastic/cloud-on-k8s/v2/pkg/controller/common/hash"
@@ -174,7 +175,9 @@ func buildAnnotations(
174
175
scriptsVersion string ,
175
176
) map [string ]string {
176
177
// start from our defaults
177
- annotations := DefaultAnnotations
178
+ annotations := map [string ]string {
179
+ annotation .FilebeatModuleAnnotation : "elasticsearch" ,
180
+ }
178
181
179
182
configHash := fnv .New32a ()
180
183
// hash of the ES config to rotate the pod on config changes
You can’t perform that action at this time.
0 commit comments