-
Notifications
You must be signed in to change notification settings - Fork 327
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
feat(kuma-dp) rename tokenPath metadata field name #1427
feat(kuma-dp) rename tokenPath metadata field name #1427
Conversation
71f09ad
to
a836501
Compare
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.
Looks OK to me.
@@ -16,7 +16,7 @@ var metadataLog = core.Log.WithName("xds-server").WithName("metadata-tracker") | |||
const ( | |||
// Supported Envoy node metadata fields. | |||
|
|||
fieldDataplaneTokenPath = "dataplaneTokenPath" | |||
fieldDataplaneTokenPath = "dataplane.token.filename" |
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 change has to be backward compatible.
When CP uses this field, it should also support the old field
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.
You mean this will break the deployed kuma-dp
's that already are preconfigured with the old name?
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.
yes
renamed dataplaneTokenPath to dataplane.token.filename in envoy metadata added backward compatibility Fix kumahq#512 Signed-off-by: Tharun <rajendrantharun@live.com>
a836501
to
8c45045
Compare
@@ -67,6 +67,9 @@ func DataplaneMetadataFromXdsMetadata(xdsMetadata *_struct.Struct) *DataplaneMet | |||
if xdsMetadata == nil { | |||
return &metadata | |||
} | |||
if field := xdsMetadata.Fields["dataplaneTokenPath"]; field != nil { |
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.
@jakubdyszkiewicz does this change look's okay for backward compatibility ?.
Thanks for the contribution and sorry for super late response. We don't use this field anymore, it was used for backward compatibility. It can be removed now. |
renamed
dataplaneTokenPath
todataplane.token.filename
in envoy metadataFix #512
Signed-off-by: Tharun rajendrantharun@live.com