diff --git a/manifests/kcp/01-platform-mesh-system/apiexport-core.platform-mesh.io.yaml b/manifests/kcp/01-platform-mesh-system/apiexport-core.platform-mesh.io.yaml index a33b582d..e4e6ac6c 100644 --- a/manifests/kcp/01-platform-mesh-system/apiexport-core.platform-mesh.io.yaml +++ b/manifests/kcp/01-platform-mesh-system/apiexport-core.platform-mesh.io.yaml @@ -10,7 +10,6 @@ spec: - v250704-6d57f16.contentconfigurations.ui.platform-mesh.io - v250725-732d200.providermetadatas.ui.platform-mesh.io - v260112-5925c7e.authorizationmodels.core.platform-mesh.io - - v250718-a64f278.stores.core.platform-mesh.io - v260213-fbdf981.invites.core.platform-mesh.io permissionClaims: - all: true diff --git a/manifests/kcp/01-platform-mesh-system/apiexport-system.platform-mesh.io.yaml b/manifests/kcp/01-platform-mesh-system/apiexport-system.platform-mesh.io.yaml index ba6a6513..0ad19b34 100644 --- a/manifests/kcp/01-platform-mesh-system/apiexport-system.platform-mesh.io.yaml +++ b/manifests/kcp/01-platform-mesh-system/apiexport-system.platform-mesh.io.yaml @@ -7,6 +7,7 @@ spec: latestResourceSchemas: - v260217-2c67392.identityproviderconfigurations.core.platform-mesh.io - v260313-c8b198d.apiexportpolicies.core.platform-mesh.io + - v250718-a64f278.stores.core.platform-mesh.io permissionClaims: - all: true group: tenancy.kcp.io diff --git a/pkg/subroutines/defaults.go b/pkg/subroutines/defaults.go index 6fe74cef..6883c0a4 100644 --- a/pkg/subroutines/defaults.go +++ b/pkg/subroutines/defaults.go @@ -31,8 +31,7 @@ var DefaultProviderConnections = []corev1alpha1.ProviderConnection{ { Path: "root:platform-mesh-system", Secret: "rebac-authz-webhook-kubeconfig", - APIExportName: ptr.To("core.platform-mesh.io"), - AdminAuth: ptr.To(false), + AdminAuth: ptr.To(true), }, { Path: "root:platform-mesh-system", diff --git a/pkg/subroutines/subroutine_helpers.go b/pkg/subroutines/subroutine_helpers.go index d71ace4d..85194b82 100644 --- a/pkg/subroutines/subroutine_helpers.go +++ b/pkg/subroutines/subroutine_helpers.go @@ -602,16 +602,6 @@ func ApplyManifestFromFile( } } - if (obj.GetKind() == "APIExport" || obj.GetKind() == "APIBinding") && obj.GetName() == "core.platform-mesh.io" { - apiExport := kcpapiv1alpha.APIExport{} - err = k8sClient.Get(ctx, types.NamespacedName{Name: "system.platform-mesh.io"}, &apiExport) - if err != nil { - return errors.Wrap(err, "Failed to get APIExport system.platform-mesh.io") - } - - templateData["apiExportSystemPlatformMeshIoIdentityHash"] = apiExport.Status.IdentityHash - } - err = k8sClient.Apply(ctx, client.ApplyConfigurationFromUnstructured(&obj), client.FieldOwner("platform-mesh-operator"), client.ForceOwnership) if err != nil {