From 2d0e67741eb8a7d18fb203c942314d7bce9d844a Mon Sep 17 00:00:00 2001 From: venkat k Date: Sat, 8 Jun 2024 20:12:06 +0530 Subject: [PATCH] fix crossplane provider resource filename --- .../config-worker/internal/crossplane/config_crossplane_app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capten/config-worker/internal/crossplane/config_crossplane_app.go b/capten/config-worker/internal/crossplane/config_crossplane_app.go index 16a8e684..ad89c25a 100644 --- a/capten/config-worker/internal/crossplane/config_crossplane_app.go +++ b/capten/config-worker/internal/crossplane/config_crossplane_app.go @@ -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 {