Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Support configuring late-initialization behavior during code-generation pipelines #84

Closed
ulucinar opened this issue Oct 7, 2021 · 0 comments · Fixed by #85
Closed
Assignees
Labels
alpha enhancement New feature or request

Comments

@ulucinar
Copy link
Collaborator

ulucinar commented Oct 7, 2021

What problem are you facing?

When trying #77 with provider-tf-azure on a v1alpha1.KubernetesCluster resource, it turns out that tfstate contains both:

"kubelet_identity": [
          {
            "client_id": "...",
            "object_id": "...",
            "user_assigned_identity_id": "..."
          }
        ]

and

"identity": [
              {
                "principal_id": "...",
                "tenant_id": "...",
                "type": "SystemAssigned",
                "user_assigned_identity_id": ""
              }
            ]

And the late initialization logic initializes both arrays with a zero-valued Identity[0].UserAssignedIdentityID, which is not allowed.

How could Terrajet help solve your problem?

We need to be able to configure late-initialization behavior of certain Terraformed resources via the resource configuration machinery.

@ulucinar ulucinar added enhancement New feature or request alpha labels Oct 7, 2021
@ulucinar ulucinar changed the title Add NameFilter to skip late-initialization of configured Terraformed fields Support configuring late-initialization behavior during code-generation pipelines Oct 7, 2021
@ulucinar ulucinar self-assigned this Oct 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
alpha enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant