From 7a808e6608da58f0b8b077a39235636cdf823ba2 Mon Sep 17 00:00:00 2001 From: JuHyung-Son Date: Mon, 15 Apr 2024 13:39:23 +0900 Subject: [PATCH] add google backend to crd Signed-off-by: JuHyung-Son --- api/v1alpha1/k8sgpt_types.go | 2 +- chart/operator/templates/k8sgpt-crd.yaml | 3 ++- config/crd/bases/core.k8sgpt.ai_k8sgpts.yaml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/v1alpha1/k8sgpt_types.go b/api/v1alpha1/k8sgpt_types.go index ef0021bb..1d345293 100644 --- a/api/v1alpha1/k8sgpt_types.go +++ b/api/v1alpha1/k8sgpt_types.go @@ -82,7 +82,7 @@ type BackOff struct { type AISpec struct { // +kubebuilder:default:=openai - // +kubebuilder:validation:Enum=openai;localai;azureopenai;amazonbedrock;cohere;amazonsagemaker + // +kubebuilder:validation:Enum=openai;localai;azureopenai;amazonbedrock;cohere;amazonsagemaker;google Backend string `json:"backend"` BackOff *BackOff `json:"backOff,omitempty"` BaseUrl string `json:"baseUrl,omitempty"` diff --git a/chart/operator/templates/k8sgpt-crd.yaml b/chart/operator/templates/k8sgpt-crd.yaml index 5258b61c..d6786f5f 100644 --- a/chart/operator/templates/k8sgpt-crd.yaml +++ b/chart/operator/templates/k8sgpt-crd.yaml @@ -62,6 +62,7 @@ spec: - amazonbedrock - cohere - amazonsagemaker + - google type: string baseUrl: type: string @@ -209,4 +210,4 @@ status: kind: "" plural: "" conditions: [] - storedVersions: [] \ No newline at end of file + storedVersions: [] diff --git a/config/crd/bases/core.k8sgpt.ai_k8sgpts.yaml b/config/crd/bases/core.k8sgpt.ai_k8sgpts.yaml index cf6310c6..1dd4f68f 100644 --- a/config/crd/bases/core.k8sgpt.ai_k8sgpts.yaml +++ b/config/crd/bases/core.k8sgpt.ai_k8sgpts.yaml @@ -61,6 +61,7 @@ spec: - amazonbedrock - cohere - amazonsagemaker + - google type: string baseUrl: type: string