Skip to content

Commit

Permalink
namespace resource added
Browse files Browse the repository at this point in the history
  • Loading branch information
aktashasan committed Oct 16, 2023
1 parent 96de8af commit 8e11036
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/external_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,


}
Expand Down
12 changes: 12 additions & 0 deletions config/namespace_quota_policy/config.go
Original file line number Diff line number Diff line change
@@ -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"
})
}
2 changes: 2 additions & 0 deletions config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -63,6 +64,7 @@ func GetProvider() *ujconfig.Provider {
kubernetes_secret.Configure,
kustomization.Configure,
namespace.Configure,
namespace_quota_policy.Configure,
} {
configure(pc)
}
Expand Down

0 comments on commit 8e11036

Please sign in to comment.