diff --git a/config/control_credential/config.go b/config/control_credential/config.go new file mode 100644 index 0000000..68e6239 --- /dev/null +++ b/config/control_credential/config.go @@ -0,0 +1,12 @@ +package control_credential + +import "github.com/upbound/upjet/pkg/config" + +// Configure configures individual resources by adding custom ResourceConfigurators. +func Configure(p *config.Provider) { + p.AddResourceConfigurator("tanzu-mission-control_credential", func(r *config.Resource) { + r.ShortGroup = "tmc" + r.Kind = "Control_Credential" + r.Version = "v1alpha1" + }) +} \ No newline at end of file diff --git a/config/external_name.go b/config/external_name.go index c597249..e8b8475 100644 --- a/config/external_name.go +++ b/config/external_name.go @@ -14,6 +14,7 @@ var ExternalNameConfigs = map[string]config.ExternalName{ "tanzu-mission-control_cluster": config.IdentifierFromProvider, "tanzu-mission-control_cluster_group": config.IdentifierFromProvider, "tanzu-mission-control_cluster_node_pool": config.IdentifierFromProvider, + "tanzu-mission-control_credential": config.IdentifierFromProvider, } // ExternalNameConfigurations applies all external name configs listed in the diff --git a/config/provider.go b/config/provider.go index 9987868..28a07aa 100644 --- a/config/provider.go +++ b/config/provider.go @@ -14,6 +14,7 @@ import ( cluster "github.com/ankasoftco/provider-tmc/config/cluster" cluster_group "github.com/ankasoftco/provider-tmc/config/cluster_group" cluster_node_pool "github.com/ankasoftco/provider-tmc/config/cluster_node_pool" + control_credential "github.com/ankasoftco/provider-tmc/config/control_credential" ) @@ -45,6 +46,7 @@ func GetProvider() *ujconfig.Provider { cluster.Configure, cluster_group.Configure, cluster_node_pool.Configure, + control_credential.Configure, } { configure(pc)