Skip to content

Commit

Permalink
repository_credential resource added
Browse files Browse the repository at this point in the history
  • Loading branch information
aktashasan committed Oct 17, 2023
1 parent 472f83d commit d78e16b
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 @@ -28,6 +28,7 @@ var ExternalNameConfigs = map[string]config.ExternalName{
"tanzu-mission-control_network_policy": config.IdentifierFromProvider,
"tanzu-mission-control_package_install": config.IdentifierFromProvider,
"tanzu-mission-control_package_repository": config.IdentifierFromProvider,
"tanzu-mission-control_repository_credential": config.IdentifierFromProvider,

}

Expand Down
2 changes: 2 additions & 0 deletions config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
network_policy "github.com/ankasoftco/provider-tmc/config/network_policy"
package_install "github.com/ankasoftco/provider-tmc/config/package_install"
package_repository "github.com/ankasoftco/provider-tmc/config/package_repository"
repository_credential "github.com/ankasoftco/provider-tmc/config/repository_credential"
)

const (
Expand Down Expand Up @@ -71,6 +72,7 @@ func GetProvider() *ujconfig.Provider {
network_policy.Configure,
package_install.Configure,
package_repository.Configure,
repository_credential.Configure,
} {
configure(pc)
}
Expand Down
12 changes: 12 additions & 0 deletions config/repository_credential/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package repository_credential

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

0 comments on commit d78e16b

Please sign in to comment.