Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Replace Shopify/yaml with gopkg.in/yaml.v3 #227

Merged
merged 2 commits into from
Oct 18, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Replace Shopify/yaml with gopkg.in/yaml.v3 🎉
  • Loading branch information
genevieveluyt committed Sep 23, 2019
commit 26dcb87bdede92d1d682cb9fddab4ce85dfbdbdb
6 changes: 2 additions & 4 deletions cmd/autofix.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ import (
)

// The fix function does not preserve comments (because kubernetes resources do not support comments) so we convert
// both the original manifest file and the fixed manifest file into MapSlices (an array representation of a map which
// preserves the order of the keys) using the Shopify/yaml fork of go-yaml/yaml (the fork adds comment support) and
// then merge the fixed MapSlice back into the original MapSlice so that we get the comments and original order back.
// both the original manifest file and the fixed manifest file into node trees and then merge the fixed node tree
// into the original node tree so that we get the comments and original order back
func autofix(*cobra.Command, []string) {

var toAppend = false

resources, err := getKubeResourcesManifest(rootConfig.manifest)
Expand Down
710 changes: 442 additions & 268 deletions cmd/autofix_test.go

Large diffs are not rendered by default.

Loading