From 1312705d86bba3e59666ee7f64b2bb91a31e29df Mon Sep 17 00:00:00 2001 From: aktashasan Date: Mon, 16 Oct 2023 23:35:52 +0300 Subject: [PATCH] control-credential resource added --- config/control_credential/config.go | 12 ++++++++++++ config/external_name.go | 1 + config/provider.go | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 config/control_credential/config.go 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)