Skip to content

providers/vmware: add support for config encoding#191

Merged
crawford merged 2 commits intocoreos:masterfrom
crawford:vmware
Mar 17, 2016
Merged

providers/vmware: add support for config encoding#191
crawford merged 2 commits intocoreos:masterfrom
crawford:vmware

Conversation

@crawford
Copy link
Copy Markdown
Contributor

This is needed to properly decode cloud-configs, which this needs to recognize
and ignore. While we are at it, we might as well add encoding support for
Ignition configs as well.

Fixes coreos/bugs#1170

This is needed to properly decode cloud-configs, which this needs to recognize
and ignore. While we are at it, we might as well add encoding support for
Ignition configs as well.
case "gz", "gzip":
return decodeGzipData(data)

case "gz+base64", "gzip+base64", "gz+b64", "gzip+b64":
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

any reason to have all of these alternate encoding names that are not described in the docs?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We have to support the same options as cloudinit: https://github.com/coreos/coreos-cloudinit/blob/9a715eff2e45c94dfdc947c13760260e691a1708/config/decode.go#L34. I'm not going to document the alternate names, because I don't want to support them long term.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

got it.

@mischief
Copy link
Copy Markdown
Contributor

lgtm

crawford added a commit that referenced this pull request Mar 17, 2016
providers/vmware: add support for config encoding
@crawford crawford merged commit aa583ab into coreos:master Mar 17, 2016
@crawford crawford deleted the vmware branch March 17, 2016 23:53
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