Skip to content

Commit

Permalink
chore: update kube marker (#281)
Browse files Browse the repository at this point in the history
* fix: kube marker

Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>

* docs: update CR specification

Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>

* chore: add missing backends

Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>

---------

Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
  • Loading branch information
3 people committed Dec 2, 2023
1 parent 7457db5 commit 4617b30
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
# anonymized: false
# language: english
noCache: false
repository: ghcr.io/k8sgpt-ai/k8gpt
repository: ghcr.io/k8sgpt-ai/k8sgpt
version: v0.3.8
#integrations:
# trivy:
Expand All @@ -58,7 +58,7 @@ spec:
# sink:
# type: slack
# webhook: <webhook-url>
# extraOptions:
#extraOptions:
# backstage:
# enabled: true
EOF
Expand Down
13 changes: 8 additions & 5 deletions api/v1alpha1/k8sgpt_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type WebhookRef struct {

type AISpec struct {
// +kubebuilder:default:=openai
// +kubebuilder:validation:Enum=openai;localai;azureopenai
// +kubebuilder:validation:Enum=openai;localai;azureopenai;amazonbedrock;cohere;amazonsagemaker
Backend string `json:"backend"`
BaseUrl string `json:"baseUrl,omitempty"`
// +kubebuilder:default:=gpt-3.5-turbo
Expand All @@ -97,7 +97,7 @@ type Integrations struct {
// K8sGPTSpec defines the desired state of K8sGPT
type K8sGPTSpec struct {
Version string `json:"version,omitempty"`
// +kubebuilder:default:=ghcr.io/k8sgpt-ai/k8gpt
// +kubebuilder:default:=ghcr.io/k8sgpt-ai/k8sgpt
Repository string `json:"repository,omitempty"`
NoCache bool `json:"noCache,omitempty"`
Filters []string `json:"filters,omitempty"`
Expand All @@ -109,9 +109,12 @@ type K8sGPTSpec struct {
}

const (
OpenAI = "openai"
AzureOpenAI = "azureopenai"
LocalAI = "localai"
OpenAI = "openai"
AzureOpenAI = "azureopenai"
LocalAI = "localai"
AmazonBedrock = "amazonbedrock"
AmazonSageMaker = "AmazonSageMaker"
Cohere = "cohere"
)

// K8sGPTStatus defines the observed state of K8sGPT
Expand Down
3 changes: 3 additions & 0 deletions chart/operator/templates/k8sgpt-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ spec:
- openai
- localai
- azureopenai
- amazonbedrock
- cohere
- amazonsagemaker
type: string
baseUrl:
type: string
Expand Down
5 changes: 4 additions & 1 deletion config/crd/bases/core.k8sgpt.ai_k8sgpts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ spec:
- openai
- localai
- azureopenai
- amazonbedrock
- cohere
- amazonsagemaker
type: string
baseUrl:
type: string
Expand Down Expand Up @@ -127,7 +130,7 @@ spec:
type: object
type: object
repository:
default: ghcr.io/k8sgpt-ai/k8gpt
default: ghcr.io/k8sgpt-ai/k8sgpt
type: string
sink:
properties:
Expand Down

0 comments on commit 4617b30

Please sign in to comment.