Skip to content
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

fix bug for AERAKI_IS_MASTER env #354

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

tanjunchen
Copy link
Member

What this PR does / Why we need it:

fixed #353

Pre-Submission Checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added related test cases?
  • Have you modified the related document?
  • Is this PR backward compatible?

@tanjunchen tanjunchen force-pushed the optimize-parameter branch from 20f0dac to e8793b9 Compare June 9, 2023 11:26
@mergify mergify bot requested a review from zhaohuabing June 9, 2023 11:26
@@ -70,13 +70,17 @@ func main() {
args.ServerID = "Aeraki-" + uuid.New().String()
}

args.PodName = env.RegisterStringVar("POD_NAME", args.ServerID, "").Get()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this line?

Copy link
Member Author

@tanjunchen tanjunchen Jun 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because the log of aeraki are:

2023-06-09T09:55:00.259687Z	warn	The environment variable POD_NAME was registered multiple times using different metadata: {POD_NAME   false false 0}, {POD_NAME Aeraki-1d13822c-eca8-470f-a828-57938547f5f2  false false 0} 2023-06-09T09:55:00.259743Z	info	Aeraki parameter: aeraki-xds-address: aeraki.istio-system
image

PodName is be registered repeatly.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tanjunchen tanjunchen force-pushed the optimize-parameter branch 2 times, most recently from fa4660a to 159d1f6 Compare June 13, 2023 11:59
Signed-off-by: chentanjun <tanjunchen20@gmail.com>
@tanjunchen tanjunchen force-pushed the optimize-parameter branch from 159d1f6 to eb12dfa Compare June 13, 2023 12:02
Copy link
Member

@zhaohuabing zhaohuabing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the contribution!

@mergify mergify bot merged commit 9ba04e9 into aeraki-mesh:master Jun 13, 2023
@tanjunchen tanjunchen deleted the optimize-parameter branch June 13, 2023 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AERAKI_IS_MASTER does not take effect
2 participants