Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update kube marker #281

Merged
merged 5 commits into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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