replicatedhq / ship

A better way to deploy Kubernetes Helm charts
https://www.replicated.com/ship
Apache License 2.0
637 stars 70 forks source link

Template function ShipCustomerRelease in config map produces error data too long #1064

Closed emosbaugh closed 5 years ago

emosbaugh commented 5 years ago

Expected behavior

I should be able to follow this guide for a titled installation https://help.replicated.com/docs/ship/playbooks/entitlements/

Actual behavior

When i try to deploy the release yaml I get the following error:

The ConfigMap "titled" is invalid: metadata.annotations: Too long: must have at most 262144 characters

Information

laverya commented 5 years ago

As a fix, I'm going to drop Github data (and private image data) from ShipCustomerRelease to form a new function ShipCustomerReleaseMinimal. This should greatly reduce the size of the annotation produced here

emosbaugh commented 5 years ago

does this require the ship app to change the k8s config map yaml? something to consider

laverya commented 5 years ago

It does The alternative is to just remove those fields from ShipCustomerRelease, which might break things too (but I don't know of any use case that would require those fields to be exposed in such a way)