Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding option to supply additional arguments to ingress via ingress.terraform_overrides.additional-arguments #1431

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

costrouc
Copy link
Member

@costrouc costrouc commented Sep 9, 2022

ingress.terraform_overrides.additional-arguments: [...]

See https://doc.traefik.io/traefik/reference/static-configuration/cli/

@costrouc costrouc force-pushed the traefik-additional-arguments branch from 65b4a7d to f64dcc7 Compare September 9, 2022 02:54
@costrouc
Copy link
Member Author

costrouc commented Sep 9, 2022

For tomorrow I think the cli option we are looking to use is --entryPoints.websecure.forwardedHeaders.insecure

@costrouc costrouc requested a review from iameskild September 9, 2022 02:57
Copy link
Member

@iameskild iameskild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To confirm, this section here will unpack the ingress.terraform_overrides and so long as the values for additional-arguments (<-- typed with a - and not _) are passed as a list, this should just work as is.

The above was mostly for me but if I've misunderstood, let me know. Otherwise, this looks great :)

@costrouc
Copy link
Member Author

costrouc commented Sep 9, 2022

@iameskild that is right. Longer term I think it makes sense to centralize these options so that terraform_overrides can be supplied to any stage.

Yes an example would be

ingress:
  terraform_overrides:
    additional-arguments:
      - "--entryPoints.websecure.forwardedHeaders.insecure"

@iameskild iameskild merged commit 9db27aa into main Sep 9, 2022
@iameskild iameskild deleted the traefik-additional-arguments branch September 9, 2022 14:39
@iameskild iameskild added this to the Release v0.4.4 milestone Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants