Skip to content

Bug: Creating a spacelift_plugin_template with the same name as a global template has unexpected consequences #707

@jeohist

Description

@jeohist

Creating a spacelift_plugin_template with the same name attribute as a 'global' template will create a new template, but with exactly the same attributes as the 'global' template.
From the UI both templates show up, but it's not possible to delete either one of them. OpenTofu reports a successful deletion but doesn't actually delete it. Renaming the template is successful and removes the duplication.

Simple reproduction (you can put anything in the YAML):

resource "spacelift_plugin_template" "wiz" {
  name     = "wiz"
  manifest = file("${path.module}/plugins/wiz.yaml")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions