diff --git a/config/external_name.go b/config/external_name.go index 153cee3..3b305c7 100644 --- a/config/external_name.go +++ b/config/external_name.go @@ -30,6 +30,7 @@ var ExternalNameConfigs = map[string]config.ExternalName{ "tanzu-mission-control_package_repository": config.IdentifierFromProvider, "tanzu-mission-control_repository_credential": config.IdentifierFromProvider, "tanzu-mission-control_security_policy": config.IdentifierFromProvider, + "tanzu-mission-control_workspace": config.IdentifierFromProvider, } diff --git a/config/provider.go b/config/provider.go index 038e329..75d261c 100644 --- a/config/provider.go +++ b/config/provider.go @@ -30,6 +30,7 @@ import ( package_repository "github.com/ankasoftco/provider-tmc/config/package_repository" repository_credential "github.com/ankasoftco/provider-tmc/config/repository_credential" security_policy "github.com/ankasoftco/provider-tmc/config/security_policy" + workspace "github.com/ankasoftco/provider-tmc/config/workspace" ) const ( @@ -75,6 +76,7 @@ func GetProvider() *ujconfig.Provider { package_repository.Configure, repository_credential.Configure, security_policy.Configure, + workspace.Configure, } { configure(pc) } diff --git a/config/workspace/config.go b/config/workspace/config.go new file mode 100644 index 0000000..2c3a87e --- /dev/null +++ b/config/workspace/config.go @@ -0,0 +1,12 @@ +package workspace + +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_workspace", func(r *config.Resource) { + r.ShortGroup = "tmc" + r.Kind = "Workspace" + r.Version = "v1alpha1" + }) +} \ No newline at end of file