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

Ensure mcp map configuration is unique #1346

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shankgan
Copy link
Collaborator

@shankgan shankgan commented Oct 26, 2022

context: since we append options to the configMap already present on the cluster, we need to make sure that the newer configuration is unique

@shankgan shankgan requested a review from zerobfd October 26, 2022 18:13
@@ -33,8 +33,12 @@ install_managed_startup_config() {
local ASM_OPTS=""
local MCP_CONFIG

declare -A mcp_map
Copy link
Contributor

Choose a reason for hiding this comment

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

Using declare/arrays doesn't work in all shells that our customers use, so we've explicitly avoided using them anywhere else in asmcli. There should be a way to do what you want either with string matching or with jq or something.

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.

None yet

2 participants