diff --git a/config/external_name.go b/config/external_name.go index 9f7032b..507af3b 100644 --- a/config/external_name.go +++ b/config/external_name.go @@ -19,6 +19,7 @@ var ExternalNameConfigs = map[string]config.ExternalName{ "tanzu-mission-control_ekscluster": config.IdentifierFromProvider, "tanzu-mission-control_git_repository": config.IdentifierFromProvider, "tanzu-mission-control_iam_policy": config.IdentifierFromProvider, + "tanzu-mission-control_image_policy": config.IdentifierFromProvider, } diff --git a/config/image_policy/config.go b/config/image_policy/config.go new file mode 100644 index 0000000..149a6e4 --- /dev/null +++ b/config/image_policy/config.go @@ -0,0 +1,12 @@ +package image_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_image_policy", func(r *config.Resource) { + r.ShortGroup = "tmc" + r.Kind = "Image_Policy" + r.Version = "v1alpha1" + }) +} \ No newline at end of file diff --git a/config/provider.go b/config/provider.go index 8fa3c4a..cb6187e 100644 --- a/config/provider.go +++ b/config/provider.go @@ -19,6 +19,7 @@ import ( ekscluster "github.com/ankasoftco/provider-tmc/config/ekscluster" git_repository "github.com/ankasoftco/provider-tmc/config/git_repository" iam_policy "github.com/ankasoftco/provider-tmc/config/iam_policy" + image_policy "github.com/ankasoftco/provider-tmc/config/image_policy" ) @@ -55,6 +56,7 @@ func GetProvider() *ujconfig.Provider { ekscluster.Configure, git_repository.Configure, iam_policy.Configure, + image_policy.Configure, } { configure(pc)