spelling: serializer

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
pull/7258/head
Josh Soref 6 years ago
parent 85384189ab
commit 11d5714c14

@ -43,7 +43,7 @@ func LoadChartfile(filename string) (*chart.Metadata, error) {
// 'filename' should be the complete path and filename ('foo/Chart.yaml') // 'filename' should be the complete path and filename ('foo/Chart.yaml')
func SaveChartfile(filename string, cf *chart.Metadata) error { func SaveChartfile(filename string, cf *chart.Metadata) error {
// Pull out the dependencies of a v1 Chart, since there's no way // Pull out the dependencies of a v1 Chart, since there's no way
// to tell the serialiser to skip a field for just this use case // to tell the serializer to skip a field for just this use case
savedDependencies := cf.Dependencies savedDependencies := cf.Dependencies
if cf.APIVersion == chart.APIVersionV1 { if cf.APIVersion == chart.APIVersionV1 {
cf.Dependencies = nil cf.Dependencies = nil

@ -142,7 +142,7 @@ func writeTarContents(out *tar.Writer, c *chart.Chart, prefix string) error {
base := filepath.Join(prefix, c.Name()) base := filepath.Join(prefix, c.Name())
// Pull out the dependencies of a v1 Chart, since there's no way // Pull out the dependencies of a v1 Chart, since there's no way
// to tell the serialiser to skip a field for just this use case // to tell the serializer to skip a field for just this use case
savedDependencies := c.Metadata.Dependencies savedDependencies := c.Metadata.Dependencies
if c.Metadata.APIVersion == chart.APIVersionV1 { if c.Metadata.APIVersion == chart.APIVersionV1 {
c.Metadata.Dependencies = nil c.Metadata.Dependencies = nil

Loading…
Cancel
Save