diff --git a/config/external_name.go b/config/external_name.go index 348997e..c14b0c9 100644 --- a/config/external_name.go +++ b/config/external_name.go @@ -17,6 +17,7 @@ var ExternalNameConfigs = map[string]config.ExternalName{ "tanzu-mission-control_credential": config.IdentifierFromProvider, "tanzu-mission-control_custom_policy": config.IdentifierFromProvider, "tanzu-mission-control_ekscluster": config.IdentifierFromProvider, + "tanzu-mission-control_git_repository": config.IdentifierFromProvider, } diff --git a/config/git_repository/config.go b/config/git_repository/config.go new file mode 100644 index 0000000..c7f4044 --- /dev/null +++ b/config/git_repository/config.go @@ -0,0 +1,13 @@ + +package git_repository + +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_git_repository", func(r *config.Resource) { + r.ShortGroup = "tmc" + r.Kind = "Git_Repository" + r.Version = "v1alpha1" + }) +} \ No newline at end of file diff --git a/config/provider.go b/config/provider.go index db2dc3d..4df2061 100644 --- a/config/provider.go +++ b/config/provider.go @@ -17,6 +17,7 @@ import ( credential "github.com/ankasoftco/provider-tmc/config/credential" custom_policy "github.com/ankasoftco/provider-tmc/config/custom_policy" ekscluster "github.com/ankasoftco/provider-tmc/config/ekscluster" + git_repository "github.com/ankasoftco/provider-tmc/config/git_repository" ) @@ -51,6 +52,7 @@ func GetProvider() *ujconfig.Provider { credential.Configure, custom_policy.Configure, ekscluster.Configure, + git_repository.Configure, } { configure(pc)