Skip to content

Commit

Permalink
fix(script create): do not add resource version on create (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicufk authored Dec 14, 2021
1 parent 858016b commit 2e9af04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/app/api/v1/scripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ func (s testkubeAPI) CreateScript() fiber.Handler {

script, err := s.ScriptsClient.Create(&scriptsv1.Script{
ObjectMeta: metav1.ObjectMeta{
Name: request.Name,
Namespace: request.Namespace,
ResourceVersion: "1",
Name: request.Name,
Namespace: request.Namespace,
},
Spec: scriptsv1.ScriptSpec{
Type_: request.Type_,
Expand Down

0 comments on commit 2e9af04

Please sign in to comment.