Skip to content

Commit

Permalink
control-credential resource added
Browse files Browse the repository at this point in the history
  • Loading branch information
aktashasan committed Oct 16, 2023
1 parent 1928107 commit 1312705
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/control_credential/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package control_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_credential", func(r *config.Resource) {
r.ShortGroup = "tmc"
r.Kind = "Control_Credential"
r.Version = "v1alpha1"
})
}
1 change: 1 addition & 0 deletions config/external_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var ExternalNameConfigs = map[string]config.ExternalName{
"tanzu-mission-control_cluster": config.IdentifierFromProvider,
"tanzu-mission-control_cluster_group": config.IdentifierFromProvider,
"tanzu-mission-control_cluster_node_pool": config.IdentifierFromProvider,
"tanzu-mission-control_credential": config.IdentifierFromProvider,
}

// ExternalNameConfigurations applies all external name configs listed in the
Expand Down
2 changes: 2 additions & 0 deletions config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
cluster "github.com/ankasoftco/provider-tmc/config/cluster"
cluster_group "github.com/ankasoftco/provider-tmc/config/cluster_group"
cluster_node_pool "github.com/ankasoftco/provider-tmc/config/cluster_node_pool"
control_credential "github.com/ankasoftco/provider-tmc/config/control_credential"


)
Expand Down Expand Up @@ -45,6 +46,7 @@ func GetProvider() *ujconfig.Provider {
cluster.Configure,
cluster_group.Configure,
cluster_node_pool.Configure,
control_credential.Configure,

} {
configure(pc)
Expand Down

0 comments on commit 1312705

Please sign in to comment.