Skip to content

Commit

Permalink
fix(buildkit/k8s): set buildkit ending time to empty
Browse files Browse the repository at this point in the history
  • Loading branch information
nettoclaudio committed Mar 15, 2023
1 parent b3792f3 commit e9a0309
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/build/buildkit/k8s_autodiscovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,9 @@ func setTsuruAppLabelOnBuildKitPod(ctx context.Context, cs *kubernetes.Clientset
"value": strconv.FormatBool(true),
},
map[string]any{
"op": "remove",
"path": fmt.Sprintf("/metadata/annotations/%s", normalizeAppLabelForJSONPatch(DeployAgentLastBuildEndingTimeLabelKey)),
"op": "replace",
"path": fmt.Sprintf("/metadata/annotations/%s", normalizeAppLabelForJSONPatch(DeployAgentLastBuildEndingTimeLabelKey)),
"value": "", // set annotation value to empty rather than removing it, since it might not exist at first run
},
map[string]any{
"op": "replace",
Expand Down

0 comments on commit e9a0309

Please sign in to comment.