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

Conversation

@kunalvalia
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment 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 pull request followers and do not help prioritize the request

Closes #94

Release note for CHANGELOG:

Currently the operator defaults to naming the workspace in a predetermined format "[namespace]-[name]." This PR adds a new optional flag in the k8s object to omit the namespace prefix from the workspace name. This enables complete control over the workspace name.

In k8s custom resource workspace

---
apiVersion: app.terraform.io/v1alpha1
kind: Workspace
metadata:
    name: greetings
spec:
    secretsMountPath: "/tmp/secrets"
    module:
        source: "git::https://github.com/koikonom/tfc-operator-test.git"
    omitNamespacePrefix: true
...

The name of this workspace is "greetings."

@kunalvalia kunalvalia requested a review from koikonom June 24, 2021 19:17
@kunalvalia kunalvalia merged commit f9a615f into hashicorp:master Jun 29, 2021
rverma-dev pushed a commit to nslhb/terraform-k8s that referenced this pull request Jul 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workspace Name Prefixed With Namespace

2 participants