Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Optional module directory for git modules #138

@eakman-nomad

Description

@eakman-nomad

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

When using a git repository as a source for a Workspace, I would like to be able to point to a subdirectory where the module lives. e.g.:

apiVersion: app.terraform.io/v1alpha1
kind: Workspace
metadata:
  name: pubsub
spec:
  sshKeyID: sshkey-frVpWGjJBNof8Kth
  organization: MyOrg
  secretsMountPath: "/tmp/secrets"
  module:
    source: "git@github.com:MyOrg/my-repo.git"
    sourceDir: "pubsub/" # <-- THIS

This way, I can house multiple modules within a single source code repository. If there's another way to accomplish this, I would be thrilled to know.

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions