diff --git a/config/external_name.go b/config/external_name.go index 586e0fa..2eb42e3 100644 --- a/config/external_name.go +++ b/config/external_name.go @@ -24,6 +24,7 @@ var ExternalNameConfigs = map[string]config.ExternalName{ "tanzu-mission-control_kubernetes_secret": config.IdentifierFromProvider, "tanzu-mission-control_kustomization": config.IdentifierFromProvider, "tanzu-mission-control_namespace": config.IdentifierFromProvider, + "tanzu-mission-control_namespace_quota_policy": config.IdentifierFromProvider, } diff --git a/config/namespace_quota_policy/config.go b/config/namespace_quota_policy/config.go new file mode 100644 index 0000000..bd9c02b --- /dev/null +++ b/config/namespace_quota_policy/config.go @@ -0,0 +1,12 @@ +package namespace_quota_policy + +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_namespace_quota_policy", func(r *config.Resource) { + r.ShortGroup = "tmc" + r.Kind = "Namespace_Quota_Policy" + r.Version = "v1alpha1" + }) +} \ No newline at end of file diff --git a/config/provider.go b/config/provider.go index 931e57a..cda61f2 100644 --- a/config/provider.go +++ b/config/provider.go @@ -24,6 +24,7 @@ import ( kubernetes_secret "github.com/ankasoftco/provider-tmc/config/kubernetes_secret" kustomization "github.com/ankasoftco/provider-tmc/config/kustomization" namespace "github.com/ankasoftco/provider-tmc/config/namespace" + namespace_quota_policy "github.com/ankasoftco/provider-tmc/config/namespace_quota_policy" ) const ( @@ -63,6 +64,7 @@ func GetProvider() *ujconfig.Provider { kubernetes_secret.Configure, kustomization.Configure, namespace.Configure, + namespace_quota_policy.Configure, } { configure(pc) }