From 450d5c46274ae731059151292669f8c33e7c33cc Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Wed, 3 Apr 2024 06:27:09 -0700 Subject: [PATCH] Add CreateNamespace to helm values Signed-off-by: Tamal Saha --- apis/core/v1alpha1/openapi_generated.go | 9 ++++++++- apis/management/v1alpha1/openapi_generated.go | 9 ++++++++- apis/meta/v1alpha1/openapi_generated.go | 9 ++++++++- apis/node/v1alpha1/openapi_generated.go | 9 ++++++++- apis/shared/helm.go | 5 +++-- apis/shared/openapi_generated.go | 9 ++++++++- apis/ui/v1alpha1/openapi_generated.go | 9 ++++++++- 7 files changed, 51 insertions(+), 8 deletions(-) diff --git a/apis/core/v1alpha1/openapi_generated.go b/apis/core/v1alpha1/openapi_generated.go index 9dec2f5b1..04839d03a 100644 --- a/apis/core/v1alpha1/openapi_generated.go +++ b/apis/core/v1alpha1/openapi_generated.go @@ -17203,6 +17203,13 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref common.Refere SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ + "createNamespace": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, "repositories": { SchemaProps: spec.SchemaProps{ Type: []string{"object"}, @@ -17230,7 +17237,7 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref common.Refere }, }, }, - Required: []string{"repositories", "releases"}, + Required: []string{"createNamespace", "repositories", "releases"}, }, }, Dependencies: []string{ diff --git a/apis/management/v1alpha1/openapi_generated.go b/apis/management/v1alpha1/openapi_generated.go index c9e58f780..d19a37898 100644 --- a/apis/management/v1alpha1/openapi_generated.go +++ b/apis/management/v1alpha1/openapi_generated.go @@ -15956,6 +15956,13 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref common.Refere SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ + "createNamespace": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, "repositories": { SchemaProps: spec.SchemaProps{ Type: []string{"object"}, @@ -15983,7 +15990,7 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref common.Refere }, }, }, - Required: []string{"repositories", "releases"}, + Required: []string{"createNamespace", "repositories", "releases"}, }, }, Dependencies: []string{ diff --git a/apis/meta/v1alpha1/openapi_generated.go b/apis/meta/v1alpha1/openapi_generated.go index 540d2ac35..09ce63605 100644 --- a/apis/meta/v1alpha1/openapi_generated.go +++ b/apis/meta/v1alpha1/openapi_generated.go @@ -20146,6 +20146,13 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref common.Refere SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ + "createNamespace": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, "repositories": { SchemaProps: spec.SchemaProps{ Type: []string{"object"}, @@ -20173,7 +20180,7 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref common.Refere }, }, }, - Required: []string{"repositories", "releases"}, + Required: []string{"createNamespace", "repositories", "releases"}, }, }, Dependencies: []string{ diff --git a/apis/node/v1alpha1/openapi_generated.go b/apis/node/v1alpha1/openapi_generated.go index b0fd277d4..5b39eada2 100644 --- a/apis/node/v1alpha1/openapi_generated.go +++ b/apis/node/v1alpha1/openapi_generated.go @@ -15861,6 +15861,13 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref common.Refere SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ + "createNamespace": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, "repositories": { SchemaProps: spec.SchemaProps{ Type: []string{"object"}, @@ -15888,7 +15895,7 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref common.Refere }, }, }, - Required: []string{"repositories", "releases"}, + Required: []string{"createNamespace", "repositories", "releases"}, }, }, Dependencies: []string{ diff --git a/apis/shared/helm.go b/apis/shared/helm.go index e24be4b73..1c02511f8 100644 --- a/apis/shared/helm.go +++ b/apis/shared/helm.go @@ -61,8 +61,9 @@ type RegistryInfo struct { } type HelmInfo struct { - Repositories map[string]*HelmRepository `json:"repositories"` - Releases map[string]*HelmRelease `json:"releases"` + CreateNamespace bool `json:"createNamespace"` + Repositories map[string]*HelmRepository `json:"repositories"` + Releases map[string]*HelmRelease `json:"releases"` } type HelmRepository struct { diff --git a/apis/shared/openapi_generated.go b/apis/shared/openapi_generated.go index 447487287..13eb4d1be 100644 --- a/apis/shared/openapi_generated.go +++ b/apis/shared/openapi_generated.go @@ -458,6 +458,13 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref common.Refere SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ + "createNamespace": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, "repositories": { SchemaProps: spec.SchemaProps{ Type: []string{"object"}, @@ -485,7 +492,7 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref common.Refere }, }, }, - Required: []string{"repositories", "releases"}, + Required: []string{"createNamespace", "repositories", "releases"}, }, }, Dependencies: []string{ diff --git a/apis/ui/v1alpha1/openapi_generated.go b/apis/ui/v1alpha1/openapi_generated.go index 41103a892..c30b5a54f 100644 --- a/apis/ui/v1alpha1/openapi_generated.go +++ b/apis/ui/v1alpha1/openapi_generated.go @@ -15720,6 +15720,13 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref common.Refere SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ + "createNamespace": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, "repositories": { SchemaProps: spec.SchemaProps{ Type: []string{"object"}, @@ -15747,7 +15754,7 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref common.Refere }, }, }, - Required: []string{"repositories", "releases"}, + Required: []string{"createNamespace", "repositories", "releases"}, }, }, Dependencies: []string{