Skip to content

Commit

Permalink
fix crossplane provider resource filename
Browse files Browse the repository at this point in the history
  • Loading branch information
vramk23 committed Jun 8, 2024
1 parent 7f7fa97 commit 2d0e677
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 2d0e677

Please sign in to comment.