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

Add reference value helpers for *bool and *string #719

Merged
merged 1 commit into from
Apr 9, 2019

Conversation

errordeveloper
Copy link
Contributor

@errordeveloper errordeveloper commented Apr 9, 2019

Description

This PR adds helper for checking if a *string value was set and isn't an empty string, as well as helpers for checking when a *bool value was set and is either true or false.

This is a follow-up to #673.

Checklist

martina-if
martina-if previously approved these changes Apr 9, 2019
@errordeveloper
Copy link
Contributor Author

@martina-if could you please take another look?

I also added another commit that fixes a minor case that we've missed in #673. I don't know if you might have fixed it in your other PR, I'm happy to drop the commit from here if you feel that we should. From the perspective of this PR that commit fixes integration tests.

@errordeveloper
Copy link
Contributor Author

errordeveloper commented Apr 9, 2019

From the perspective of this PR that commit fixes integration tests.

Actually, I said that too early! It's not true, the commit only fixes create cluster case, it needs to take care of create ng also...

- renane `NewBoolTrue` & `NewBoolFalse` to `Enabled` `Disabled`
- add `IsEnabled` and `IsDisabled`
- add `IsSetAndNonEmptyString`
@errordeveloper errordeveloper merged commit 7036262 into master Apr 9, 2019
@errordeveloper errordeveloper deleted the value-ref-helpers branch April 9, 2019 16:06
torredil pushed a commit to torredil/eksctl that referenced this pull request May 20, 2022
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.

2 participants