Skip to content

bug: example kubernetes-devcontainer template duplicates environment variable definitions for envbuilder #18137

Closed
@sharkymark

Description

@sharkymark

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Filing in coder/coder since it is an example template, versus filing in coder/envbuilder.

Warning messages appear in the Terraform build logs

Upon inspection of the template, the following variables are defined both in the envbuilder provider and as local:

git_url
cache_repo
insecure

Removing the entries from the local, eliminated the warnings. If tried to put git_url and cache_repo as locals, the build failed saying both are required in the provider.

Relevant Log Output

Warning: Overriding provider environment variable
on main.tf line 210, in resource "envbuilder_cached_image" "cached":
  210:   extra_env     = local.envbuilder_env
The key "ENVBUILDER_INSECURE" in extra_env overrides an option set on the provider.
Warning: Cannot override required environment variable
on main.tf line 210, in resource "envbuilder_cached_image" "cached":
  210:   extra_env     = local.envbuilder_env
The key "ENVBUILDER_GIT_URL" in extra_env cannot be overridden.
Warning: Cannot override required environment variable
on main.tf line 210, in resource "envbuilder_cached_image" "cached":
  210:   extra_env     = local.envbuilder_env
The key "ENVBUILDER_CACHE_REPO" in extra_env cannot be overridden.

Expected Behavior

No warnings about the envbuilder provider

Steps to Reproduce

  1. Use the example kubernetes-devcontainer template in Coder
  2. Populate required variables and coder_parameters and create a workspace
  3. See Terraform build log warnings

Environment

  • Host OS: Sequoia 15.5
  • Coder version: 2.22.1

Additional Context

No response

Metadata

Metadata

Assignees

Labels

good first issueEasily solved issues suitable for starters and community contributorss3Bugs that confuse, annoy, or are purely cosmetic

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy