Skip to content

Is a map of object supported as input variable? #546

Answered by chanwit
aspx asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @aspx
The controller supports YAML to HCL conversion so in your case please try:

apiVersion: infra.contrib.fluxcd.io/v1alpha1
kind: Terraform
metadata:
  name: test 
  namespace: test
spec:
  interval: 1m
  approvePlan: auto
  destroyResourcesOnDeletion: false
  path: ./
  sourceRef:
    kind: GitRepository
    name: terraform-modules-test
    namespace: test
  vars:
  - name: heartbeats 
    value:
      test:
        name: test

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aspx
Comment options

Answer selected by aspx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants