From 1ec364621390b02ea7d4a9f8558f2232db9998f9 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 43526e196..311aefbdd 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 === StoreProviders.PVC) { diff --git a/packages/odf/components/mcg/CreateObjectBucketClaim.tsx b/packages/odf/components/mcg/CreateObjectBucketClaim.tsx index 2f7d9f41f..51dd59cfa 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 4fc93e9ba..fe31659c3 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 b777a8f0a..4507f319f 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 be8b3b76f..4528c2f9b 100644 --- a/packages/odf/utils/mcg.ts +++ b/packages/odf/utils/mcg.ts @@ -333,7 +333,6 @@ export const createNewObjectBucketClaim = ( namespace, }, spec: { - ssl: false, storageClassName, generateBucketName: name, additionalConfig: {