Skip to content

Commit

Permalink
git_repository resource added
Browse files Browse the repository at this point in the history
  • Loading branch information
aktashasan committed Oct 16, 2023
1 parent e65141f commit ba307e0
Show file tree
Hide file tree
Showing 3 changed files with 16 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 @@ -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,

}

Expand Down
13 changes: 13 additions & 0 deletions config/git_repository/config.go
Original file line number Diff line number Diff line change
@@ -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"
})
}
2 changes: 2 additions & 0 deletions config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"


)
Expand Down Expand Up @@ -51,6 +52,7 @@ func GetProvider() *ujconfig.Provider {
credential.Configure,
custom_policy.Configure,
ekscluster.Configure,
git_repository.Configure,

} {
configure(pc)
Expand Down

0 comments on commit ba307e0

Please sign in to comment.