-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(k8sgpt): update test values and use relative manifest url
- Loading branch information
1 parent
b51cf42
commit 685f2f7
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--value "anonymized=false" --value "openaiApiKey=sk-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaatestkey" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: k8sgpt-secret | ||
type: Opaque | ||
data: | ||
openai-api-key: "" | ||
--- | ||
apiVersion: core.k8sgpt.ai/v1alpha1 | ||
kind: K8sGPT | ||
metadata: | ||
name: k8sgpt | ||
spec: | ||
ai: | ||
enabled: true | ||
model: gpt-3.5-turbo | ||
backend: openai | ||
secret: | ||
name: k8sgpt-secret | ||
key: openai-api-key | ||
noCache: false | ||
repository: ghcr.io/k8sgpt-ai/k8sgpt | ||
version: v0.3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# yaml-language-server: $schema=https://glasskube.dev/schemas/v1/package-manifest.json | ||
name: k8sgpt-operator | ||
iconUrl: https://avatars.githubusercontent.com/u/128535266?s=150 | ||
shortDescription: Automatic SRE Superpowers within your Kubernetes cluster | ||
longDescription: | | ||
This Operator is designed to enable K8sGPT within a Kubernetes cluster. | ||
It will allow you to create a custom resource that defines the behaviour and scope of a managed K8sGPT workload. | ||
Analysis and outputs will also be configurable to enable integration into existing workflows. | ||
defaultNamespace: k8sgpt-operator-system | ||
helm: | ||
repositoryUrl: https://charts.k8sgpt.ai/ | ||
chartName: k8sgpt-operator | ||
chartVersion: v0.1.3 | ||
references: | ||
- label: "ArtifactHub" | ||
url: "https://artifacthub.io/packages/helm/k8sgpt/k8sgpt-operator" | ||
manifests: | ||
- url: ./manifest.yaml | ||
valueDefinitions: | ||
openaiApiKey: | ||
type: text | ||
targets: | ||
- patch: | ||
op: add | ||
path: /data/openai-api-key | ||
valueTemplate: | | ||
"{{ . | base64 }}" | ||
resource: | ||
apiGroup: v1 | ||
kind: Secret | ||
name: k8sgpt-secret | ||
namespace: k8sgpt-operator-system | ||
constraints: | ||
required: true | ||
minLength: 50 | ||
pattern: "sk-.+" | ||
anonymized: | ||
type: boolean | ||
defaultValue: "false" | ||
targets: | ||
- patch: | ||
op: add | ||
path: /spec/ai/anonymized | ||
valueTemplate: "{{ . }}" | ||
resource: | ||
apiGroup: core.k8sgpt.ai/v1alpha1 | ||
kind: K8sGPT | ||
name: k8sgpt | ||
namespace: k8sgpt-operator-system | ||
language: | ||
type: text | ||
defaultValue: english | ||
targets: | ||
- patch: | ||
op: add | ||
path: /spec/ai/language | ||
resource: | ||
apiGroup: core.k8sgpt.ai/v1alpha1 | ||
kind: K8sGPT | ||
name: k8sgpt | ||
namespace: k8sgpt-operator-system |