Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

is it possible to use a module from a sub-directory in my git repo? #61

Open
docteurklein opened this issue Feb 4, 2020 · 3 comments
Open

Comments

@docteurklein
Copy link

docteurklein commented Feb 4, 2020

I'd like to provide a sub-directory in the git url of my module CRD, like https://www.terraform.io/docs/modules/sources.html#modules-in-package-sub-directories

Since it's terraform-controller doing the checkout, I guess it doesn't support the same syntax than terraform?

Wouldn't it be possible to let terraform do the work using its source feature?

@k0da
Copy link
Contributor

k0da commented Nov 26, 2020

@docteurklein we had the same usecase. I've implemented this in AbsaOSS@94fd278 but there is a drawback. there is no way git commit relates to particular module in a subdir, hence module will get an update whether or not subdir got changes.

@k0da
Copy link
Contributor

k0da commented Nov 26, 2020

I plan to open a PR for this.

@k0da
Copy link
Contributor

k0da commented Dec 3, 2020

With tf 0.14 being avaiable, there is a new flag -chdir, I'll investigate it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants