-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce advancedHTTP for expose field & change podLabels to s…
…elector (#154) This PR deprecates `podLabels`, 'remotePodsLabels', and `match` and changes this to `selector`, `remoteSelector` and `advancedHTTP.match`, respectively. This PR also introduces `advancedHTTP` which brings support for the following `VirtualService` fields: - `corsPolicy` - `directResponse` - `headers` - `retries` - `rewrite` - `timeout` - `weight` --------- Co-authored-by: Micah Nagel <[email protected]> Co-authored-by: Micah Nagel <[email protected]>
- Loading branch information
1 parent
bfab11e
commit 1079267
Showing
22 changed files
with
790 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
const isZarfEnv = process.env.UDS_DOMAIN !== "###ZARF_VAR_DOMAIN###"; | ||
import { Log } from "pepr"; | ||
|
||
// We need to handle `npx pepr <>` commands that will not template the env vars | ||
const domain = process.env.UDS_DOMAIN; | ||
const isZarfEnv = domain ? domain !== "###ZARF_VAR_DOMAIN###" : false; | ||
|
||
export const UDSConfig = { | ||
// Ignore the UDS_DOMAIN if not deployed by Zarf | ||
domain: (isZarfEnv && process.env.UDS_DOMAIN) || "uds.dev", | ||
domain: (isZarfEnv && domain) || "uds.dev", | ||
// Assume Istio is installed if not deployed by Zarf | ||
istioInstalled: !isZarfEnv || process.env.UDS_WITH_ISTIO === "true", | ||
}; | ||
|
||
Log.info(UDSConfig, "Loaded UDS Config"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.