-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b91525
commit 13dfc92
Showing
12 changed files
with
193 additions
and
87 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,2 @@ | ||
run*.json | ||
mission-control.properties |
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,25 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
|
||
.bin/ |
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,9 @@ | ||
apiVersion: v2 | ||
name: mission-control-playbooks-ai | ||
description: Flanksource Mission Control Playbooks that uses AI action | ||
icon: https://github.com/flanksource/docs/blob/main/docs/images/flanksource-icon.png?raw=true | ||
type: application | ||
version: 0.0.1 | ||
appVersion: "1.0.0" | ||
maintainers: | ||
- name: Flanksource |
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,30 @@ | ||
LOCALBIN ?= $(shell pwd)/.bin | ||
|
||
$(LOCALBIN): | ||
mkdir -p .bin | ||
|
||
.PHONY: values.schema.json | ||
values.schema.json: .bin/helm-schema | ||
.bin/helm-schema -r -f values.yaml | ||
|
||
|
||
.PHONY: chart | ||
chart: values.schema.json README.md | ||
|
||
|
||
.PHONY: README.md | ||
README.md: .bin/helm-docs | ||
.bin/helm-docs -t README.md.tpl | ||
|
||
.bin/helm-docs: | ||
test -s $(LOCALBIN)/helm-docs || \ | ||
GOBIN=$(LOCALBIN) go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest | ||
|
||
.bin/helm-schema: | ||
test -s $(LOCALBIN)/helm-schema || \ | ||
GOBIN=$(LOCALBIN) go install github.com/dadav/helm-schema/cmd/helm-schema@latest | ||
|
||
|
||
.PHONY: lint | ||
lint: chart | ||
ct lint --charts . |
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,18 @@ | ||
# mission-control-playbooks-ai | ||
|
||
Flanksource Mission Control Playbooks that uses AI action | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
| --------------------- | ------ | ------- | ----------------------------------------------------------------------------------- | | ||
| connection | string | `""` | LLM connection: one of ollama, openai or anthropic | | ||
| diagnose.cluster | string | `""` | name of the cluster | | ||
| diagnose.enabled | bool | `true` | enable kubernetes diagnosing playbook | | ||
| diagnose.systemPrompt | string | `""` | Optional system prompt for the LLM. If not provided, a default prompt will be used. | | ||
|
||
## Maintainers | ||
|
||
| Name | Email | Url | | ||
| ----------- | ----- | --- | | ||
| Flanksource | | | |
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,17 @@ | ||
{{ template "chart.header" . }} | ||
{{ template "chart.deprecationWarning" . }} | ||
|
||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.homepageLine" . }} | ||
|
||
|
||
{{ template "chart.sourcesSection" . }} | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
{{ template "chart.valuesSection" . }} | ||
|
||
{{ template "helm-docs.versionFooter" . }} | ||
|
||
{{ template "chart.maintainersSection" . }} |
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
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,55 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"additionalProperties": false, | ||
"properties": { | ||
"connection": { | ||
"default": "", | ||
"description": "yaml-language-server: $schema=values.schema.json\nLLM connection: one of ollama, openai or anthropic", | ||
"required": [], | ||
"title": "connection", | ||
"type": "string" | ||
}, | ||
"diagnose": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"cluster": { | ||
"default": "", | ||
"description": "name of the cluster", | ||
"required": [], | ||
"title": "cluster", | ||
"type": "string" | ||
}, | ||
"enabled": { | ||
"default": true, | ||
"description": "enable kubernetes diagnosing playbook", | ||
"required": [], | ||
"title": "enabled", | ||
"type": "boolean" | ||
}, | ||
"systemPrompt": { | ||
"default": "", | ||
"description": "Optional system prompt for the LLM. If not provided, a default prompt will be used.", | ||
"required": [], | ||
"title": "systemPrompt", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"cluster" | ||
], | ||
"title": "diagnose", | ||
"type": "object" | ||
}, | ||
"global": { | ||
"description": "Global values are values that can be accessed from any chart or subchart by exactly the same name.", | ||
"required": [], | ||
"title": "global", | ||
"type": "object" | ||
} | ||
}, | ||
"required": [ | ||
"connection", | ||
"diagnose" | ||
], | ||
"type": "object" | ||
} |
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,29 @@ | ||
# yaml-language-server: $schema=values.schema.json | ||
# @schema | ||
# type: string | ||
# required: true | ||
# @schema | ||
# -- LLM connection: one of ollama, openai or anthropic | ||
connection: "" | ||
|
||
diagnose: | ||
# @schema | ||
# type: boolean | ||
# required: false | ||
# @schema | ||
# -- enable kubernetes diagnosing playbook | ||
enabled: true | ||
|
||
# @schema | ||
# type: string | ||
# required: true | ||
# @schema | ||
# -- name of the cluster | ||
cluster: "" | ||
|
||
# @schema | ||
# type: string | ||
# required: false | ||
# @schema | ||
# -- Optional system prompt for the LLM. If not provided, a default prompt will be used. | ||
systemPrompt: "" |
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
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
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