Skip to content

Commit

Permalink
fix: remove schema field from pipeline config returned by spinnaker (
Browse files Browse the repository at this point in the history
…#19)

This field was introduced after Spinnaker 1.27 and causes perpetual diffs, so we just ignore it like we already do with the other Spinnaker-managed fields.
  • Loading branch information
martinohmann authored Sep 1, 2022
1 parent 1cd4596 commit 5a6929f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spinnaker/resource_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ func editAndEncodePipeline(pipeline map[string]interface{}) (string, error) {
delete(pipeline, "id")
delete(pipeline, "index")
delete(pipeline, "name")
delete(pipeline, "schema")
delete(pipeline, "updateTs")

encoded, err := json.Marshal(pipeline)
Expand Down

0 comments on commit 5a6929f

Please sign in to comment.