Skip to content

Add support for passing args to the kbrew app #63

@PrasadG193

Description

@PrasadG193

Update recipe struct to default values for args for an app.

For an helm app, args could be the helm values for the chart

  args: 
    # key: value/ref. For helm app key would be the helm value key
    replicas: 3
    persistent.storageclass: {{ .params.storageClass }} | user input --option

For raw/manifest app, the key would be the manifest path (jsonpath). We need to check if we can update the raw app manifest fields at runtime using jsonpath syntax

  app:
  - args:
      # for raw/manifest app, the key would be the manifest path (jsonpath)
      .spec.containers[*].env[?(@.name=="MYSQL_ROOT_PASSWORD")].value: {{ .mysqlPassword }}
      .spec.storageClass: {{ lookup }}
    name: custom-app

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions