Skip to content

Commit

Permalink
Set sidecar image value
Browse files Browse the repository at this point in the history
  • Loading branch information
triceras committed Aug 23, 2024
1 parent 465e884 commit 3e040f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions controllers/humiocluster_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (

const (
Image = "humio/humio-core:1.131.1"
SidecarImage = "humio/humio-core:1.131.1"
HelperImage = "humio/humio-operator-helper:8f5ef6c7e470226e77d985f36cf39be9a100afea"
targetReplicationFactor = 2
digestPartitionsCount = 24
Expand Down
4 changes: 2 additions & 2 deletions controllers/suite/clusters/humiocluster_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4997,7 +4997,7 @@ var _ = Describe("HumioCluster Controller", func() {
toCreate.Spec.SidecarContainers = []corev1.Container{
{
Name: "jmap",
Image: "test-sidecar-image",
Image: controllers.SidecarImage,
},
}

Expand All @@ -5011,7 +5011,7 @@ var _ = Describe("HumioCluster Controller", func() {
for _, pod := range clusterPods {
for _, container := range pod.Spec.Containers {
if container.Name == "jmap" {
Expect(container.Image).To(Equal("test-sidecar-image"))
Expect(container.Image).To(Equal(controllers.SidecarImage))
}
}
}
Expand Down

0 comments on commit 3e040f0

Please sign in to comment.