Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true +groupName=core.k8sgpt.ai
Index ¶
- Constants
- Variables
- type AISpec
- type AzureBackend
- type BackOff
- type Backstage
- type Connection
- type CredentialsRef
- type CustomAnalyzer
- type ExtraOptionsRef
- type Failure
- type GCSBackend
- type ImagePullSecrets
- type Integrations
- type InterplexBackend
- type K8sGPT
- type K8sGPTList
- type K8sGPTSpec
- type K8sGPTStatus
- type RemoteCacheRef
- type Result
- type ResultList
- type ResultSpec
- type ResultStatus
- type S3Backend
- type SecretRef
- type Sensitive
- type Trivy
- type WebhookRef
Constants ¶
const ( OpenAI = "openai" AzureOpenAI = "azureopenai" LocalAI = "localai" AmazonBedrock = "amazonbedrock" AmazonSageMaker = "AmazonSageMaker" Cohere = "cohere" Google = "google" GoogleVertexAI = "googlevertexai" IBMWatsonxAI = "ibmwatsonxai" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "core.k8sgpt.ai", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type AISpec ¶ added in v0.0.18
type AISpec struct { // +kubebuilder:default:=openai // +kubebuilder:validation:Enum=ibmwatsonxai;openai;localai;azureopenai;amazonbedrock;cohere;amazonsagemaker;google;googlevertexai Backend string `json:"backend"` BackOff *BackOff `json:"backOff,omitempty"` BaseUrl string `json:"baseUrl,omitempty"` Region string `json:"region,omitempty"` // +kubebuilder:default:=gpt-3.5-turbo Model string `json:"model,omitempty"` Engine string `json:"engine,omitempty"` Secret *SecretRef `json:"secret,omitempty"` Enabled bool `json:"enabled,omitempty"` // +kubebuilder:default:=true Anonymize *bool `json:"anonymized,omitempty"` // +kubebuilder:default:=english Language string `json:"language,omitempty"` ProxyEndpoint string `json:"proxyEndpoint,omitempty"` ProviderId string `json:"providerId,omitempty"` // +kubebuilder:default:="2048" MaxTokens string `json:"maxTokens,omitempty"` // +kubebuilder:default:="50" Topk string `json:"topk,omitempty"` }
func (*AISpec) DeepCopy ¶ added in v0.0.18
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AISpec.
func (*AISpec) DeepCopyInto ¶ added in v0.0.18
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureBackend ¶ added in v0.0.23
type AzureBackend struct { StorageAccount string `json:"storageAccount,omitempty"` ContainerName string `json:"containerName,omitempty"` }
func (*AzureBackend) DeepCopy ¶ added in v0.0.23
func (in *AzureBackend) DeepCopy() *AzureBackend
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureBackend.
func (*AzureBackend) DeepCopyInto ¶ added in v0.0.23
func (in *AzureBackend) DeepCopyInto(out *AzureBackend)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackOff ¶ added in v0.1.0
type BackOff struct { // +kubebuilder:default:=false Enabled bool `json:"enabled"` // +kubebuilder:default:=5 MaxRetries int `json:"maxRetries"` }
func (*BackOff) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackOff.
func (*BackOff) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Backstage ¶ added in v0.0.17
type Backstage struct {
Enabled bool `json:"enabled,omitempty"`
}
func (*Backstage) DeepCopy ¶ added in v0.0.17
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backstage.
func (*Backstage) DeepCopyInto ¶ added in v0.0.17
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Connection ¶ added in v0.1.7
func (*Connection) DeepCopy ¶ added in v0.1.7
func (in *Connection) DeepCopy() *Connection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Connection.
func (*Connection) DeepCopyInto ¶ added in v0.1.7
func (in *Connection) DeepCopyInto(out *Connection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CredentialsRef ¶ added in v0.0.21
type CredentialsRef struct {
Name string `json:"name,omitempty"`
}
func (*CredentialsRef) DeepCopy ¶ added in v0.0.21
func (in *CredentialsRef) DeepCopy() *CredentialsRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialsRef.
func (*CredentialsRef) DeepCopyInto ¶ added in v0.0.21
func (in *CredentialsRef) DeepCopyInto(out *CredentialsRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomAnalyzer ¶ added in v0.1.7
type CustomAnalyzer struct { Name string `json:"name,omitempty"` Connection *Connection `json:"connection,omitempty"` }
func (*CustomAnalyzer) DeepCopy ¶ added in v0.1.7
func (in *CustomAnalyzer) DeepCopy() *CustomAnalyzer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomAnalyzer.
func (*CustomAnalyzer) DeepCopyInto ¶ added in v0.1.7
func (in *CustomAnalyzer) DeepCopyInto(out *CustomAnalyzer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExtraOptionsRef ¶ added in v0.0.17
type ExtraOptionsRef struct {
Backstage *Backstage `json:"backstage,omitempty"`
}
func (*ExtraOptionsRef) DeepCopy ¶ added in v0.0.17
func (in *ExtraOptionsRef) DeepCopy() *ExtraOptionsRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraOptionsRef.
func (*ExtraOptionsRef) DeepCopyInto ¶ added in v0.0.17
func (in *ExtraOptionsRef) DeepCopyInto(out *ExtraOptionsRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Failure ¶
type Failure struct { Text string `json:"text,omitempty"` Sensitive []Sensitive `json:"sensitive,omitempty"` }
func (*Failure) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Failure.
func (*Failure) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GCSBackend ¶ added in v0.0.25
type GCSBackend struct { BucketName string `json:"bucketName,omitempty"` Region string `json:"region,omitempty"` ProjectId string `json:"projectId,omitempty"` }
func (*GCSBackend) DeepCopy ¶ added in v0.0.25
func (in *GCSBackend) DeepCopy() *GCSBackend
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCSBackend.
func (*GCSBackend) DeepCopyInto ¶ added in v0.0.25
func (in *GCSBackend) DeepCopyInto(out *GCSBackend)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImagePullSecrets ¶ added in v0.0.28
type ImagePullSecrets struct {
Name string `json:"name,omitempty"`
}
func (*ImagePullSecrets) DeepCopy ¶ added in v0.0.28
func (in *ImagePullSecrets) DeepCopy() *ImagePullSecrets
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImagePullSecrets.
func (*ImagePullSecrets) DeepCopyInto ¶ added in v0.0.28
func (in *ImagePullSecrets) DeepCopyInto(out *ImagePullSecrets)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Integrations ¶ added in v0.0.22
type Integrations struct {
Trivy *Trivy `json:"trivy,omitempty"`
}
func (*Integrations) DeepCopy ¶ added in v0.0.22
func (in *Integrations) DeepCopy() *Integrations
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Integrations.
func (*Integrations) DeepCopyInto ¶ added in v0.0.22
func (in *Integrations) DeepCopyInto(out *Integrations)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InterplexBackend ¶ added in v0.2.4
type InterplexBackend struct {
Endpoint string `json:"endpoint,omitempty"`
}
func (*InterplexBackend) DeepCopy ¶ added in v0.2.4
func (in *InterplexBackend) DeepCopy() *InterplexBackend
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterplexBackend.
func (*InterplexBackend) DeepCopyInto ¶ added in v0.2.4
func (in *InterplexBackend) DeepCopyInto(out *InterplexBackend)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K8sGPT ¶
type K8sGPT struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec K8sGPTSpec `json:"spec,omitempty"` Status K8sGPTStatus `json:"status,omitempty"` }
K8sGPT is the Schema for the k8sgpts API
func GetValidProjectResource ¶ added in v0.2.0
func (*K8sGPT) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sGPT.
func (*K8sGPT) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*K8sGPT) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*K8sGPT) GetValidResource ¶ added in v0.2.0
func (*K8sGPT) LoadResource ¶ added in v0.2.0
type K8sGPTList ¶
type K8sGPTList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []K8sGPT `json:"items"` }
K8sGPTList contains a list of K8sGPT
func (*K8sGPTList) DeepCopy ¶
func (in *K8sGPTList) DeepCopy() *K8sGPTList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sGPTList.
func (*K8sGPTList) DeepCopyInto ¶
func (in *K8sGPTList) DeepCopyInto(out *K8sGPTList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*K8sGPTList) DeepCopyObject ¶
func (in *K8sGPTList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K8sGPTSpec ¶
type K8sGPTSpec struct { Version string `json:"version,omitempty"` // +kubebuilder:default:=ghcr.io/k8sgpt-ai/k8sgpt Repository string `json:"repository,omitempty"` ImagePullSecrets []ImagePullSecrets `json:"imagePullSecrets,omitempty"` Resources *corev1.ResourceRequirements `json:"resources,omitempty"` NoCache bool `json:"noCache,omitempty"` CustomAnalyzers []CustomAnalyzer `json:"customAnalyzers,omitempty"` Filters []string `json:"filters,omitempty"` ExtraOptions *ExtraOptionsRef `json:"extraOptions,omitempty"` Sink *WebhookRef `json:"sink,omitempty"` AI *AISpec `json:"ai,omitempty"` RemoteCache *RemoteCacheRef `json:"remoteCache,omitempty"` Integrations *Integrations `json:"integrations,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` TargetNamespace string `json:"targetNamespace,omitempty"` // Define the kubeconfig the Deployment must use. // If empty, the Deployment will use the ServiceAccount provided by Kubernetes itself. Kubeconfig *SecretRef `json:"kubeconfig,omitempty"` }
K8sGPTSpec defines the desired state of K8sGPT
func (*K8sGPTSpec) DeepCopy ¶
func (in *K8sGPTSpec) DeepCopy() *K8sGPTSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sGPTSpec.
func (*K8sGPTSpec) DeepCopyInto ¶
func (in *K8sGPTSpec) DeepCopyInto(out *K8sGPTSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K8sGPTStatus ¶
type K8sGPTStatus struct { }
K8sGPTStatus defines the observed state of K8sGPT show the current backend used +kubebuilder:printcolumn:name="Backend",type="string",JSONPath=".spec.ai.backend",description="The current backend used"
func (*K8sGPTStatus) DeepCopy ¶
func (in *K8sGPTStatus) DeepCopy() *K8sGPTStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sGPTStatus.
func (*K8sGPTStatus) DeepCopyInto ¶
func (in *K8sGPTStatus) DeepCopyInto(out *K8sGPTStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RemoteCacheRef ¶ added in v0.0.21
type RemoteCacheRef struct { Credentials *CredentialsRef `json:"credentials,omitempty"` GCS *GCSBackend `json:"gcs,omitempty"` S3 *S3Backend `json:"s3,omitempty"` Azure *AzureBackend `json:"azure,omitempty"` Interplex *InterplexBackend `json:"interplex,omitempty"` }
func (*RemoteCacheRef) DeepCopy ¶ added in v0.0.21
func (in *RemoteCacheRef) DeepCopy() *RemoteCacheRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteCacheRef.
func (*RemoteCacheRef) DeepCopyInto ¶ added in v0.0.21
func (in *RemoteCacheRef) DeepCopyInto(out *RemoteCacheRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Result ¶
type Result struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ResultSpec `json:"spec,omitempty"` Status ResultStatus `json:"status,omitempty"` }
Result is the Schema for the results API
func (*Result) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Result.
func (*Result) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Result) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResultList ¶
type ResultList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Result `json:"items"` }
ResultList contains a list of Result
func (*ResultList) DeepCopy ¶
func (in *ResultList) DeepCopy() *ResultList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResultList.
func (*ResultList) DeepCopyInto ¶
func (in *ResultList) DeepCopyInto(out *ResultList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResultList) DeepCopyObject ¶
func (in *ResultList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResultSpec ¶
type ResultSpec struct { Backend string `json:"backend"` Kind string `json:"kind"` Name string `json:"name"` Error []Failure `json:"error"` Details string `json:"details"` ParentObject string `json:"parentObject"` }
ResultSpec defines the desired state of Result
func (*ResultSpec) DeepCopy ¶
func (in *ResultSpec) DeepCopy() *ResultSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResultSpec.
func (*ResultSpec) DeepCopyInto ¶
func (in *ResultSpec) DeepCopyInto(out *ResultSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResultStatus ¶
type ResultStatus struct { LifeCycle string `json:"lifecycle,omitempty"` Webhook string `json:"webhook,omitempty"` }
ResultStatus defines the observed state of Result
func (*ResultStatus) DeepCopy ¶
func (in *ResultStatus) DeepCopy() *ResultStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResultStatus.
func (*ResultStatus) DeepCopyInto ¶
func (in *ResultStatus) DeepCopyInto(out *ResultStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3Backend ¶ added in v0.0.23
type S3Backend struct { BucketName string `json:"bucketName,omitempty"` Region string `json:"region,omitempty"` }
func (*S3Backend) DeepCopy ¶ added in v0.0.23
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Backend.
func (*S3Backend) DeepCopyInto ¶ added in v0.0.23
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretRef ¶
func (*SecretRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Sensitive ¶
type Sensitive struct { Unmasked string `json:"unmasked,omitempty"` Masked string `json:"masked,omitempty"` }
func (*Sensitive) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sensitive.
func (*Sensitive) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Trivy ¶ added in v0.0.22
type Trivy struct { Enabled bool `json:"enabled,omitempty"` SkipInstall bool `json:"skipInstall,omitempty"` Namespace string `json:"namespace,omitempty"` }
func (*Trivy) DeepCopy ¶ added in v0.0.22
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trivy.
func (*Trivy) DeepCopyInto ¶ added in v0.0.22
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookRef ¶ added in v0.0.18
type WebhookRef struct { // +kubebuilder:validation:Enum=slack;mattermost Type string `json:"type,omitempty"` Endpoint string `json:"webhook,omitempty"` Channel string `json:"channel,omitempty"` UserName string `json:"username,omitempty"` IconURL string `json:"icon_url,omitempty"` Secret *SecretRef `json:"secret,omitempty"` }
func (*WebhookRef) DeepCopy ¶ added in v0.0.18
func (in *WebhookRef) DeepCopy() *WebhookRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookRef.
func (*WebhookRef) DeepCopyInto ¶ added in v0.0.18
func (in *WebhookRef) DeepCopyInto(out *WebhookRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.