v1alpha1

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true +groupName=core.k8sgpt.ai

Index

Constants

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

Variables

View Source
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=openai;localai;azureopenai;amazonbedrock;cohere;amazonsagemaker
	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"`
}

func (*AISpec) DeepCopy added in v0.0.18

func (in *AISpec) DeepCopy() *AISpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AISpec.

func (*AISpec) DeepCopyInto added in v0.0.18

func (in *AISpec) DeepCopyInto(out *AISpec)

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:=true
	Enabled bool `json:"enabled"`
	// +kubebuilder:default:=5
	MaxRetries int `json:"maxRetries"`
}

func (*BackOff) DeepCopy added in v0.1.0

func (in *BackOff) DeepCopy() *BackOff

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackOff.

func (*BackOff) DeepCopyInto added in v0.1.0

func (in *BackOff) DeepCopyInto(out *BackOff)

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

func (in *Backstage) DeepCopy() *Backstage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backstage.

func (*Backstage) DeepCopyInto added in v0.0.17

func (in *Backstage) DeepCopyInto(out *Backstage)

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 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

func (in *Failure) DeepCopy() *Failure

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Failure.

func (*Failure) DeepCopyInto

func (in *Failure) DeepCopyInto(out *Failure)

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 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 (*K8sGPT) DeepCopy

func (in *K8sGPT) DeepCopy() *K8sGPT

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sGPT.

func (*K8sGPT) DeepCopyInto

func (in *K8sGPT) DeepCopyInto(out *K8sGPT)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*K8sGPT) DeepCopyObject

func (in *K8sGPT) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

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"`
	NoCache          bool               `json:"noCache,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"`
}

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

func (in *Result) DeepCopy() *Result

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Result.

func (*Result) DeepCopyInto

func (in *Result) DeepCopyInto(out *Result)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Result) DeepCopyObject

func (in *Result) DeepCopyObject() runtime.Object

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

func (in *S3Backend) DeepCopy() *S3Backend

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Backend.

func (*S3Backend) DeepCopyInto added in v0.0.23

func (in *S3Backend) DeepCopyInto(out *S3Backend)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretRef

type SecretRef struct {
	Name string `json:"name,omitempty"`
	Key  string `json:"key,omitempty"`
}

func (*SecretRef) DeepCopy

func (in *SecretRef) DeepCopy() *SecretRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.

func (*SecretRef) DeepCopyInto

func (in *SecretRef) DeepCopyInto(out *SecretRef)

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

func (in *Sensitive) DeepCopy() *Sensitive

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sensitive.

func (*Sensitive) DeepCopyInto

func (in *Sensitive) DeepCopyInto(out *Sensitive)

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

func (in *Trivy) DeepCopy() *Trivy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trivy.

func (*Trivy) DeepCopyInto added in v0.0.22

func (in *Trivy) DeepCopyInto(out *Trivy)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL