Skip to content

Commit

Permalink
Harmonize client config format with exporter config
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao committed Oct 17, 2024
1 parent 009f315 commit b62dfb8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
mkdir -p ~/.config/jumpstarter/clients
go run ./cmd/jmpctl/main.go client create test-client-1 > ~/.config/jumpstarter/clients/test-client-1.yaml
cat <<EOF >> ~/.config/jumpstarter/clients/test-client-1.yaml
drivers:
allow: []
unsafe: True
drivers:
allow: []
unsafe: True
EOF
- name: Create exporter
Expand Down
17 changes: 6 additions & 11 deletions internal/cmd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,12 @@ var clientCreateCmd = &cobra.Command{
Value: "ClientConfig",
},
{
Key: "client",
Value: []yaml.MapItem{
{
Key: "endpoint",
Value: object.Status.Endpoint,
},
{
Key: "token",
Value: string(token),
},
},
Key: "endpoint",
Value: object.Status.Endpoint,
},
{
Key: "token",
Value: string(token),
},
}
if err := yaml.NewEncoder(os.Stdout).Encode(&clientConfig); err != nil {
Expand Down

0 comments on commit b62dfb8

Please sign in to comment.