Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct order of precedence to gate Konnect mode
Right now decK runs against Konnect if some Konnect credentials are around, either via command flags or via environment variables. In the case of having a `kong-addr` different from the default value and some lingering Konnect credentials environment variables set, decK would still decide to run against Konnect instead of Kong. This PR is reworking the order of precedence gating Konnect: 1. if the config file contains the `_konnect` entry, run against Konnect 2. if the `kong-addr` is set to a non-default value, run against Kong 3. if some Konnect credentials are set, run against Konnect 4. otherwise run against Kong
- Loading branch information