harness Cli is asking for text input for the delegate-name for creating kubernetes connector as show below, even when the delegateSelectors: had delegate name mentioned
Trying to create or update connector using the yaml= harnesscd-example-apps/guestbook/harnesscd-pipeline/kubernetes-connector.yml
? Enter valid delegate name: delegate-deba-demo
Environment
Harness Cli Version: v0.0.10-alpha
OS: Mac M1 Pro
Steps To Reproduce
Use the connector YAML with pre-filled delegate name under delegateSelectors: as follows:
2. Use apply command to create the connector as follows:
harness connector --file apply
## Expected Results
deba@Debabrata Panigrahi harness-cli % harness connector --file harnesscd-example-apps/guestbook/harnesscd-pipeline/kubernetes-connector.yml apply
Trying to create or update connector using the yaml= harnesscd-example-apps/guestbook/harnesscd-pipeline/kubernetes-connector.yml
ERRO[2023-07-25T15:27:35+05:30] Connector with identifier [harnessk8sconnecto] not found in project [communityeng] and org [default].
Creating connector with id: harnessk8sconnecto
Successfully created connector with id= harnessk8sconnecto
## Actual Results
deba@Debabrata Panigrahi harness-cli % harness connector --file harnesscd-example-apps/guestbook/harnesscd-pipeline/kubernetes-connector.yml apply
Trying to create or update connector using the yaml= harnesscd-example-apps/guestbook/harnesscd-pipeline/kubernetes-connector.yml
? Enter valid delegate name: delegate-deba-demo
ERRO[2023-07-25T15:27:35+05:30] Connector with identifier [harnessk8sconnecto] not found in project [communityeng] and org [default].
Creating connector with id: harnessk8sconnecto
Successfully created connector with id= harnessk8sconnecto
Summary
harness
Cli is asking for text input for thedelegate-name
for creating kubernetes connector as show below, even when thedelegateSelectors:
had delegate name mentionedEnvironment
Harness Cli Version:
v0.0.10-alpha
OS:Mac M1 Pro
Steps To Reproduce
delegateSelectors:
as follows:harness connector --file apply
deba@Debabrata Panigrahi harness-cli % harness connector --file harnesscd-example-apps/guestbook/harnesscd-pipeline/kubernetes-connector.yml apply
Trying to create or update connector using the yaml= harnesscd-example-apps/guestbook/harnesscd-pipeline/kubernetes-connector.yml ERRO[2023-07-25T15:27:35+05:30] Connector with identifier [harnessk8sconnecto] not found in project [communityeng] and org [default]. Creating connector with id: harnessk8sconnecto Successfully created connector with id= harnessk8sconnecto
deba@Debabrata Panigrahi harness-cli % harness connector --file harnesscd-example-apps/guestbook/harnesscd-pipeline/kubernetes-connector.yml apply
Trying to create or update connector using the yaml= harnesscd-example-apps/guestbook/harnesscd-pipeline/kubernetes-connector.yml ? Enter valid delegate name: delegate-deba-demo ERRO[2023-07-25T15:27:35+05:30] Connector with identifier [harnessk8sconnecto] not found in project [communityeng] and org [default]. Creating connector with id: harnessk8sconnecto Successfully created connector with id= harnessk8sconnecto