Skip to content

Commit

Permalink
Merge pull request #514 from kube-tarian/crossplane-provide-name
Browse files Browse the repository at this point in the history
fix crossplane provider resource filename
  • Loading branch information
vramk23 authored Jun 8, 2024
2 parents 01f66af + 2d0e677 commit 488250a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (cp *CrossPlaneApp) syncArgoCDChildApps(ctx context.Context, namespace stri
func (cp *CrossPlaneApp) createProviderConfigs(dir string, req *model.CrossplaneUseCase) error {
logger.Infof("processing %d crossplane providers to generate provider config", len(req.CrossplaneProviders))
for _, provider := range req.CrossplaneProviders {
providerName := strings.ToLower(provider.ProviderName)
providerName := strings.ToLower(provider.CloudType)
providerFile := filepath.Join(dir, fmt.Sprintf("%s-provider.yaml", providerName))
dir := filepath.Dir(providerFile)
if err := os.MkdirAll(dir, os.ModePerm); err != nil {
Expand Down

0 comments on commit 488250a

Please sign in to comment.