Skip to content

Commit

Permalink
Merge pull request #1956 from caseydavenport/auto-pick-of-#1955-origi…
Browse files Browse the repository at this point in the history
…n-release-v1.27

[release-v1.27] Auto pick #1955: Fix felix healthport: set as env var
  • Loading branch information
caseydavenport authored May 12, 2022
2 parents 8a746dd + b6e1486 commit 9f7c6c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/render/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,7 @@ func (c *nodeComponent) nodeEnvVars() []corev1.EnvVar {
{Name: "CALICO_DISABLE_FILE_LOGGING", Value: "false"},
{Name: "FELIX_DEFAULTENDPOINTTOHOSTACTION", Value: "ACCEPT"},
{Name: "FELIX_HEALTHENABLED", Value: "true"},
{Name: "FELIX_HEALTHPORT", Value: fmt.Sprintf("%d", c.cfg.FelixHealthPort)},
{
Name: "NODENAME",
ValueFrom: &corev1.EnvVarSource{
Expand Down
10 changes: 10 additions & 0 deletions pkg/render/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ var _ = Describe("Node rendering tests", func() {
{Name: "FELIX_DEFAULTENDPOINTTOHOSTACTION", Value: "ACCEPT"},
{Name: "FELIX_IPV6SUPPORT", Value: "false"},
{Name: "FELIX_HEALTHENABLED", Value: "true"},
{Name: "FELIX_HEALTHPORT", Value: "9099"},
{
Name: "NODENAME",
ValueFrom: &corev1.EnvVarSource{
Expand Down Expand Up @@ -434,6 +435,7 @@ var _ = Describe("Node rendering tests", func() {
{Name: "FELIX_DEFAULTENDPOINTTOHOSTACTION", Value: "ACCEPT"},
{Name: "FELIX_IPV6SUPPORT", Value: "false"},
{Name: "FELIX_HEALTHENABLED", Value: "true"},
{Name: "FELIX_HEALTHPORT", Value: "9099"},
{
Name: "NODENAME",
ValueFrom: &corev1.EnvVarSource{
Expand Down Expand Up @@ -655,6 +657,7 @@ var _ = Describe("Node rendering tests", func() {
{Name: "FELIX_DEFAULTENDPOINTTOHOSTACTION", Value: "ACCEPT"},
{Name: "FELIX_IPV6SUPPORT", Value: "false"},
{Name: "FELIX_HEALTHENABLED", Value: "true"},
{Name: "FELIX_HEALTHPORT", Value: "9099"},
{
Name: "NODENAME",
ValueFrom: &corev1.EnvVarSource{
Expand Down Expand Up @@ -934,6 +937,7 @@ var _ = Describe("Node rendering tests", func() {
{Name: "FELIX_DEFAULTENDPOINTTOHOSTACTION", Value: "ACCEPT"},
{Name: "FELIX_IPV6SUPPORT", Value: "false"},
{Name: "FELIX_HEALTHENABLED", Value: "true"},
{Name: "FELIX_HEALTHPORT", Value: "9099"},
{
Name: "NODENAME",
ValueFrom: &corev1.EnvVarSource{
Expand Down Expand Up @@ -1091,6 +1095,7 @@ var _ = Describe("Node rendering tests", func() {
{Name: "FELIX_DEFAULTENDPOINTTOHOSTACTION", Value: "ACCEPT"},
{Name: "FELIX_IPV6SUPPORT", Value: "false"},
{Name: "FELIX_HEALTHENABLED", Value: "true"},
{Name: "FELIX_HEALTHPORT", Value: "9099"},
{
Name: "NODENAME",
ValueFrom: &corev1.EnvVarSource{
Expand Down Expand Up @@ -1338,6 +1343,7 @@ var _ = Describe("Node rendering tests", func() {
{Name: "FELIX_DEFAULTENDPOINTTOHOSTACTION", Value: "ACCEPT"},
{Name: "FELIX_IPV6SUPPORT", Value: "false"},
{Name: "FELIX_HEALTHENABLED", Value: "true"},
{Name: "FELIX_HEALTHPORT", Value: "9099"},
{
Name: "NODENAME",
ValueFrom: &corev1.EnvVarSource{
Expand Down Expand Up @@ -1492,6 +1498,7 @@ var _ = Describe("Node rendering tests", func() {
{Name: "FELIX_DEFAULTENDPOINTTOHOSTACTION", Value: "ACCEPT"},
{Name: "FELIX_IPV6SUPPORT", Value: "false"},
{Name: "FELIX_HEALTHENABLED", Value: "true"},
{Name: "FELIX_HEALTHPORT", Value: "9099"},
{
Name: "NODENAME",
ValueFrom: &corev1.EnvVarSource{
Expand Down Expand Up @@ -1660,6 +1667,7 @@ var _ = Describe("Node rendering tests", func() {
{Name: "FELIX_DEFAULTENDPOINTTOHOSTACTION", Value: "ACCEPT"},
{Name: "FELIX_IPV6SUPPORT", Value: "false"},
{Name: "FELIX_HEALTHENABLED", Value: "true"},
{Name: "FELIX_HEALTHPORT", Value: "9199"},
{
Name: "NODENAME",
ValueFrom: &corev1.EnvVarSource{
Expand Down Expand Up @@ -1741,6 +1749,7 @@ var _ = Describe("Node rendering tests", func() {
{Name: "FELIX_DEFAULTENDPOINTTOHOSTACTION", Value: "ACCEPT"},
{Name: "FELIX_IPV6SUPPORT", Value: "false"},
{Name: "FELIX_HEALTHENABLED", Value: "true"},
{Name: "FELIX_HEALTHPORT", Value: "9199"},
{
Name: "NODENAME",
ValueFrom: &corev1.EnvVarSource{
Expand Down Expand Up @@ -2755,6 +2764,7 @@ var _ = Describe("Node rendering tests", func() {
{Name: "FELIX_DEFAULTENDPOINTTOHOSTACTION", Value: "ACCEPT"},
{Name: "FELIX_IPV6SUPPORT", Value: "false"},
{Name: "FELIX_HEALTHENABLED", Value: "true"},
{Name: "FELIX_HEALTHPORT", Value: "9099"},
{
Name: "NODENAME",
ValueFrom: &corev1.EnvVarSource{
Expand Down

0 comments on commit 9f7c6c3

Please sign in to comment.