params.libsonnet 425 B

1234567891011121314151617
  1. local params = std.extVar("__ksonnet/params");
  2. local globals = import "globals.libsonnet";
  3. local envParams = params + {
  4. components +: {
  5. // Insert component parameter overrides here. Ex:
  6. // guestbook +: {
  7. // name: "guestbook-dev",
  8. // replicas: params.global.replicas,
  9. // },
  10. },
  11. };
  12. {
  13. components: {
  14. [x]: envParams.components[x] + globals, for x in std.objectFields(envParams.components)
  15. },
  16. }