Skip to content

Commit f5357db

Browse files
wip
1 parent 762db3c commit f5357db

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

internal/controller/kyma/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ func (r *Reconciler) updateKyma(ctx context.Context, kyma *v1beta2.Kyma) error {
576576

577577
func (r *Reconciler) reconcileManifests(ctx context.Context, kyma *v1beta2.Kyma) error {
578578
templates := r.TemplateLookup.GetRegularTemplates(ctx, kyma)
579-
ociRepo := "http://k3d-kcp-registry.localhost:5000/component-descriptors" //TODO: Get from configuration
579+
ociRepo := "http://k3d-kcp-registry.localhost:5000" ///component-descriptors" //TODO: Get from configuration
580580
prsr := parser.NewParser(r.Client, r.DescriptorProvider, r.RemoteSyncNamespace, ociRepo)
581581
modules := prsr.GenerateModulesFromTemplates(kyma, templates)
582582

internal/controller/mandatorymodule/installation_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (r *InstallationReconciler) Reconcile(ctx context.Context, req ctrl.Request
8585
func (r *InstallationReconciler) GenerateModulesFromTemplate(ctx context.Context,
8686
templates templatelookup.ModuleTemplatesByModuleName, kyma *v1beta2.Kyma,
8787
) (modulecommon.Modules, error) {
88-
ociRepo := "http://k3d-kcp-registry.localhost:5000/component-descriptors" //TODO: Get from configuration
88+
ociRepo := "http://k3d-kcp-registry.localhost:5000" ///component-descriptors" //TODO: Get from configuration
8989
parser := parser.NewParser(r.Client, r.DescriptorProvider, r.RemoteSyncNamespace, ociRepo)
9090
return parser.GenerateMandatoryModulesFromTemplates(ctx, kyma, templates), nil
9191
}

internal/manifest/img/pathextractor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ func (p PathExtractor) GetPathForFetchedLayer(ctx context.Context,
6161
keyChain authn.Keychain,
6262
filename string,
6363
) (string, error) {
64-
imageRef := fmt.Sprintf("%s/%s@%s", imageSpec.Repo, imageSpec.Name, imageSpec.Ref)
64+
//TODO: use component-descriptors from constants
65+
imageRef := fmt.Sprintf("%s/%s/%s@%s", imageSpec.Repo, "component-descriptors", imageSpec.Name, imageSpec.Ref)
6566

6667
installPath := getFsChartPath(imageSpec)
6768
manifestPath := path.Join(installPath, filename)

0 commit comments

Comments
 (0)