Skip to content

Commit 0c5feed

Browse files
committed
fix tkn pac repo create not accepting namespace
Closes #466 Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent b5c59fa commit 0c5feed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cmd/tknpac/repository/create.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ func getOrCreateNamespace(ctx context.Context, opts *createOptions) error {
119119
// check if the namespace exists if it does just exit
120120
_, err := opts.run.Clients.Kube.CoreV1().Namespaces().Get(ctx, chosenNS, metav1.GetOptions{})
121121
if err == nil {
122+
opts.repository.Namespace = chosenNS
122123
return nil
123124
}
124125

0 commit comments

Comments
 (0)