Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

remove unneeded fields from ShipCustomerRelease template func #1065

Merged

Conversation

laverya
Copy link
Member

@laverya laverya commented Sep 17, 2019

What I Did

remove unneeded fields from ShipCustomerRelease template func
also add ShipCustomerReleaseFull for if someone actually needed those
fix #1064

How I Did it

How to verify it

Description for the Changelog

Picture of a Ship (not required but encouraged)

USS Enterprise (CVN-65)

also add ShipCustomerReleaseFull for if someone actually needed those
@@ -35,6 +35,22 @@ func (ctx *InstallationContext) entitlementValue(name string) string {
}

func (ctx *InstallationContext) shipCustomerRelease() string {
restrictedMeta := ctx.Meta
restrictedMeta.ConfigSpec = ""
Copy link
Member

Choose a reason for hiding this comment

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

it would be nice to omit these but this seems like a good workaround for the time being. although it would be possible to marshal it to a map string interface and remove the keys.

@laverya laverya merged commit 1a5c303 into replicatedhq:master Sep 17, 2019
@laverya laverya deleted the improve-ShipCustomerRelease-template-func branch September 17, 2019 20:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Template function ShipCustomerRelease in config map produces error data too long
2 participants