Kong / deck

decK: Configuration management and drift detection for Kong

Home Page:https://docs.konghq.com/deck/overview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deck validate --online does not use workspace to fetch version

lvermeire opened this issue · comments

Online validation for a specific workspace does not set the workspace config when fetching the kong version, unlike every other command that uses fetchKongVersion.

deck/cmd/validate.go

Lines 120 to 125 in 574122f

func validateWithKong(ctx context.Context, kongClient *kong.Client, ks *state.KongState) []error {
// make sure we are able to connect to Kong
kongVersion, err := fetchKongVersion(ctx, rootConfig)
if err != nil {
return []error{fmt.Errorf("couldn't fetch Kong version: %w", err)}
}

https://github.com/Kong/deck/blob/574122f31dfcb1ec03d93cf2eef503d620b6b215/cmd/ping.go#L63C43-L68