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/adapt scripts to work on mac #2199

Merged
merged 1 commit into from
Feb 21, 2023
Merged

Conversation

wanddynosios
Copy link
Contributor

@wanddynosios wanddynosios commented Feb 17, 2023

Is there a related GitHub Issue?

#2108

What is this change about?

I ran the deploy-on-kind.sh on my Mac and ran into a couple of issues that this PR adresses:

  • kbld has a reported bug where it does not work properly on machines set to another language. Setting LC_ALL=en_US.UTF-8 in the script fixes this.
  • If registry_configuration is an empty array, I get a "unbound variable" so I added a default empty value. As array elements are interpreted as if in single quotes, helm thinks it is getting one argument too many. Removing the double quotes fixes this.
  • The Mac's default bash version is unfortunately 3.2., so it does not know the [[ -v VAR_NAME ]] syntax. Comparing via == "true" should work on both newer and older machines.

Does this PR introduce a breaking change?

no

@gcapizzi
Copy link
Contributor

Thank you @wanddynosios!

@gcapizzi gcapizzi merged commit 7edfdb7 into cloudfoundry:main Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants