-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
agent: ensure that we normalize bootstrapped config entries #8547
Conversation
} | ||
] | ||
} | ||
}`}, | ||
hcl: []string{` | ||
config_entries { | ||
bootstrap { | ||
kind = "proxy-defaults" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test had to change because the Normalize
method for proxy-defaults
always forces the Name
field to be global
@@ -3772,6 +3775,8 @@ func TestBuilder_BuildAndValide_ConfigFlagsAndEdgecases(t *testing.T) { | |||
} | |||
}, | |||
}, | |||
// TODO(rb): add in missing tests for ingress-gateway (snake + camel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed these, but adding them in is outside of the targeted scope of this particular fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
🍒✅ Cherry pick of commit d184345 onto |
In all other ways to commit config entries to the state store we
Normalize()
before invokingValidate()
save for the bootstrap angle which this PR corrects.