From 9f4240f0acc6097480a106860952ca84a3871858 Mon Sep 17 00:00:00 2001 From: Timothy Asir Jeyasingh Date: Fri, 15 Nov 2024 08:42:39 +0530 Subject: [PATCH] Fix webhook warning in bucket and obc creation bz: https://bugzilla.redhat.com/show_bug.cgi?id=2311546 Signed-off-by: Timothy Asir Jeyasingh --- packages/odf/components/create-bs/create-bs.tsx | 1 - packages/odf/components/mcg/CreateObjectBucketClaim.tsx | 4 +--- .../odf/components/namespace-store/namespace-store-form.tsx | 2 -- packages/odf/types/mcg.ts | 1 - packages/odf/utils/mcg.ts | 1 - 5 files changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/odf/components/create-bs/create-bs.tsx b/packages/odf/components/create-bs/create-bs.tsx index f289a2fe9..8a89da00e 100644 --- a/packages/odf/components/create-bs/create-bs.tsx +++ b/packages/odf/components/create-bs/create-bs.tsx @@ -157,7 +157,6 @@ const CreateBackingStoreForm: React.FC = ( }, spec: { type: NOOBAA_TYPE_MAP[provider], - ssl: false, }, }; if (provider === BC_PROVIDERS.PVC) { diff --git a/packages/odf/components/mcg/CreateObjectBucketClaim.tsx b/packages/odf/components/mcg/CreateObjectBucketClaim.tsx index e049b836e..fcc17c53a 100644 --- a/packages/odf/components/mcg/CreateObjectBucketClaim.tsx +++ b/packages/odf/components/mcg/CreateObjectBucketClaim.tsx @@ -191,9 +191,7 @@ export const CreateOBCForm: React.FC = (props) => { metadata: { namespace, }, - spec: { - ssl: false, - }, + spec: {}, }; if (state.scName) { obj.spec.storageClassName = state.scName; diff --git a/packages/odf/components/namespace-store/namespace-store-form.tsx b/packages/odf/components/namespace-store/namespace-store-form.tsx index 95b542857..5b9459c4e 100644 --- a/packages/odf/components/namespace-store/namespace-store-form.tsx +++ b/packages/odf/components/namespace-store/namespace-store-form.tsx @@ -60,7 +60,6 @@ const externalProviders = getExternalProviders(StoreType.NS); type Payload = K8sResourceCommon & { spec: { type: string; - ssl: boolean; [key: string]: any; }; }; @@ -208,7 +207,6 @@ const NamespaceStoreForm: React.FC = (props) => { }, spec: { type: NOOBAA_TYPE_MAP[provider], - ssl: false, }, }; if (externalProviders.includes(provider)) { diff --git a/packages/odf/types/mcg.ts b/packages/odf/types/mcg.ts index aa23e5b10..2280e19b6 100644 --- a/packages/odf/types/mcg.ts +++ b/packages/odf/types/mcg.ts @@ -24,7 +24,6 @@ export type BackingStoreKind = K8sResourceCommon & { export type MCGPayload = K8sResourceCommon & { spec: { type: string; - ssl: boolean; [key: string]: any; }; }; diff --git a/packages/odf/utils/mcg.ts b/packages/odf/utils/mcg.ts index 18a6181c9..89549247e 100644 --- a/packages/odf/utils/mcg.ts +++ b/packages/odf/utils/mcg.ts @@ -326,7 +326,6 @@ export const createNewObjectBucketClaim = ( namespace, }, spec: { - ssl: false, storageClassName, generateBucketName: name, additionalConfig: {