From 5a6929f0f52b26021b76fbe7997b2f683c993ac0 Mon Sep 17 00:00:00 2001 From: martinohmann Date: Thu, 1 Sep 2022 11:53:46 +0200 Subject: [PATCH] fix: remove `schema` field from pipeline config returned by spinnaker (#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. --- spinnaker/resource_pipeline.go | 1 + 1 file changed, 1 insertion(+) diff --git a/spinnaker/resource_pipeline.go b/spinnaker/resource_pipeline.go index a1d98ef..542af50 100644 --- a/spinnaker/resource_pipeline.go +++ b/spinnaker/resource_pipeline.go @@ -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)