-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into enableSOC2Check
- Loading branch information
Showing
12 changed files
with
336 additions
and
81 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { z } from "zod"; | ||
|
||
import { serviceNumberValidator } from "lib/porter-apps/values"; | ||
|
||
export const redisConfigValidator = z.object({ | ||
type: z.literal("redis"), | ||
cpuCores: serviceNumberValidator.default({ | ||
value: 0.5, | ||
readOnly: false, | ||
}), | ||
ramMegabytes: serviceNumberValidator.default({ | ||
value: 512, | ||
readOnly: false, | ||
}), | ||
storageGigabytes: serviceNumberValidator.default({ | ||
value: 1, | ||
readOnly: false, | ||
}), | ||
password: z.string().default("redis"), | ||
}); | ||
export type RedisConfig = z.infer<typeof redisConfigValidator>; | ||
|
||
export function defaultRedisAddon(): RedisConfig { | ||
return redisConfigValidator.parse({ | ||
type: "redis", | ||
}); | ||
} |
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.