Skip to content

Commit 23346d1

Browse files
author
Andrew Farries
committed
Delete metadata from resource before kubectl apply
1 parent 4b1b513 commit 23346d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.werft/jobs/build/installer/installer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ EOF`)
169169
{ slice },
170170
);
171171
exec(`yq w -i stripe-api-keys.secret.yaml metadata.namespace "default"`, { slice });
172+
exec(`yq d -i stripe-api-keys.secret.yaml metadata.creationTimestamp`, { slice });
173+
exec(`yq d -i stripe-api-keys.secret.yaml metadata.uid`, { slice });
174+
exec(`yq d -i stripe-api-keys.secret.yaml metadata.resourceVersion`, { slice });
172175
exec(`kubectl --kubeconfig "${this.options.kubeconfigPath}" apply -f stripe-api-keys.secret.yaml`, { slice });
173176
exec(`rm -f stripe-api-keys.secret.yaml`, { slice });
174177
}

0 commit comments

Comments
 (0)