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(kubernetes): fix property parser exception #3885

Merged
merged 1 commit into from
Jul 17, 2019

Conversation

ethanfrogers
Copy link
Contributor

when the property parser exountered a malformed it would throw an out of
bounds exception and fail. we should just skip properties with empty
values.

when the property parser exountered a malformed it would throw an out of
bounds exception and fail. we should just skip properties with empty
values.

Fixes spinnaker/spinnaker#4629
@ethanfrogers
Copy link
Contributor Author

cc @milesmatthias - is this the behavior you would expect for malformed properties? I can see either skipping it or defaulting it to an empty string as valid behaviors.

@milesmatthias
Copy link
Contributor

Yea, I would expect it to be skipped as well. Thanks for the quick fix @ethanfrogers! 👏

@ethanfrogers ethanfrogers merged commit de2c3a0 into spinnaker:master Jul 17, 2019
@ethanfrogers ethanfrogers deleted the property-parser-fix branch July 17, 2019 16:13
@milesmatthias
Copy link
Contributor

1 follow up here... either way you handle this scenario, there's a potential for extra work to be created. For example, I'm using the return value here as an override in a bake stage, and an empty string in a bake override is a valid value, so manifests are created.

For me, my bake step is generating job manifests, so the command being run in the job needs to exit cleanly in the use case of cmd "". That's fine since we control the command the job being run, but may be a problem elsewhere.

cc @maggieneterval

@ethanfrogers
Copy link
Contributor Author

@spinnakerbot cherry-pick 1.15

spinnakerbot pushed a commit that referenced this pull request Jul 22, 2019
when the property parser exountered a malformed it would throw an out of
bounds exception and fail. we should just skip properties with empty
values.

Fixes spinnaker/spinnaker#4629
@spinnakerbot
Copy link
Contributor

Cherry pick successful: #3894

ethanfrogers pushed a commit that referenced this pull request Jul 22, 2019
when the property parser exountered a malformed it would throw an out of
bounds exception and fail. we should just skip properties with empty
values.

Fixes spinnaker/spinnaker#4629
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants