Skip to content

Commit

Permalink
kustomization resource added
Browse files Browse the repository at this point in the history
  • Loading branch information
aktashasan committed Oct 16, 2023
1 parent 3d2e7fb commit 6e14a6a
Show file tree
Hide file tree
Showing 3 changed files with 14 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 @@ -22,6 +22,7 @@ var ExternalNameConfigs = map[string]config.ExternalName{
"tanzu-mission-control_image_policy": config.IdentifierFromProvider,
"tanzu-mission-control_integration": config.IdentifierFromProvider,
"tanzu-mission-control_kubernetes_secret": config.IdentifierFromProvider,
"tanzu-mission-control_kustomization": config.IdentifierFromProvider,


}
Expand Down
11 changes: 11 additions & 0 deletions config/kustomization/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package kustomization

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_kustomization", func(r *config.Resource) {
r.ShortGroup = "tmc"
r.Kind = "Kustomization"
r.Version = "v1alpha1"
}

Check failure on line 11 in config/kustomization/config.go

View workflow job for this annotation

GitHub Actions / unit-tests

syntax error: unexpected EOF in argument list; possibly missing comma or )

Check failure on line 11 in config/kustomization/config.go

View workflow job for this annotation

GitHub Actions / publish-artifacts

syntax error: unexpected EOF in argument list; possibly missing comma or )

Check failure on line 11 in config/kustomization/config.go

View workflow job for this annotation

GitHub Actions / publish-artifacts

syntax error: unexpected EOF in argument list; possibly missing comma or )

Check failure on line 11 in config/kustomization/config.go

View workflow job for this annotation

GitHub Actions / local-deploy

syntax error: unexpected EOF in argument list; possibly missing comma or )
2 changes: 2 additions & 0 deletions config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
image_policy "github.com/ankasoftco/provider-tmc/config/image_policy"
integration "github.com/ankasoftco/provider-tmc/config/integration"
kubernetes_secret "github.com/ankasoftco/provider-tmc/config/kubernetes_secret"
kustomization "github.com/ankasoftco/provider-tmc/config/kustomization"


)
Expand Down Expand Up @@ -61,6 +62,7 @@ func GetProvider() *ujconfig.Provider {
image_policy.Configure,
integration.Configure,
kubernetes_secret.Configure,
kustomization.Configure,

} {
configure(pc)
Expand Down

0 comments on commit 6e14a6a

Please sign in to comment.