crossplane / crossplane/upjet

Remove `Type` from `config.Reference` struct

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
breaking-change codegen enhancement v2
Dominant language
Go
Stars
481
Forks
131
Avg merge
2d 1h
Merged PRs (30d)
11

Description

### What problem are you facing?

We now have `TerraformName` to represent the corresponding resource, hence `Type` is unnecessary and could be derived from `map[string]*config.Resource` map.

### How could Terrajet help solve your problem?

Make the existing `map[string]*config.Resource` map available to CRD builder so that it can look up the type name and write to file, hence remove the only usage of the `Type` field.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.