Skip to content

Commit 1c71d7f

Browse files
committed
fixes
1 parent c036777 commit 1c71d7f

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

src/components/Wizards/CreateManagedControlPlaneWizardContainer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const CreateManagedControlPlaneWizardContainer: FC<
107107
}: OnCreatePayload): Promise<boolean> => {
108108
try {
109109
await trigger(
110-
CreateManagedControlPlane(name, workspaceName, {
110+
CreateManagedControlPlane(name, `${projectName}--ws-${workspaceName}`, {
111111
displayName: displayName,
112112
chargingTarget: chargingTarget,
113113
members: members,
@@ -149,6 +149,8 @@ export const CreateManagedControlPlaneWizardContainer: FC<
149149
handleCreateManagedControlPlane(getValues());
150150
}
151151
};
152+
console.log('selected');
153+
console.log(selectedStep);
152154
return (
153155
<Dialog
154156
stretch={true}

src/lib/api/types/crate/createManagedControlPlane.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const CreateManagedControlPlane = (
3636
): CreateManagedControlPlaneType => {
3737
return {
3838
apiVersion: 'core.openmcp.cloud/v1alpha1',
39-
kind: 'ControlPlane',
39+
kind: 'ManagedControlPlane',
4040
metadata: {
4141
name: name,
4242
namespace: namespace,
@@ -49,6 +49,16 @@ export const CreateManagedControlPlane = (
4949
},
5050
spec: {
5151
members: optional?.members ?? [],
52+
// dataplane: {
53+
// type: 'Gardener',
54+
// gardener: {
55+
// region: 'eu-west-1',
56+
// },
57+
// },
58+
// crossplane: {
59+
// enabled: false,
60+
// version: '1.14.0',
61+
// },
5262
},
5363
};
5464
};
@@ -58,9 +68,9 @@ export const CreateManagedControlPlaneResource = (
5868
workspaceName: string,
5969
): Resource<undefined> => {
6070
return {
61-
path: `/apis/core.openmcp.cloud/v1alpha1/namespaces/project-${projectName}--ws-${workspaceName}/managedcontrolplanes`,
71+
path: `/apis/core.openmcp.cloud/v1alpha1/namespaces/${projectName}--ws-${workspaceName}/managedcontrolplanes`,
6272
method: 'POST',
63-
jq: undefined,
73+
jq: '[.items[] | {metadata: .metadata | {name, namespace}, status: { conditions: [.status.conditions[] | {type: .type, status: .status, message: .message, reason: .reason, lastTransitionTime: .lastTransitionTime}], access: .status.components.authentication.access, status: .status.status } }]',
6474
body: undefined,
6575
};
6676
};

0 commit comments

Comments
 (0)