Skip to content

Commit

Permalink
feat: CRD updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe authored and moshloop committed Jan 8, 2025
1 parent 6452aae commit 7ffacda
Show file tree
Hide file tree
Showing 9 changed files with 1,056 additions and 46 deletions.
116 changes: 86 additions & 30 deletions crd-chart/templates/canary-checker.flanksource.com.yaml

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions crd-chart/templates/configs.flanksource.com_scrapeconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6478,6 +6478,20 @@ spec:
status:
description: ScrapeConfigStatus defines the observed state of ScrapeConfig
properties:
lastRun:
properties:
error:
type: integer
errors:
items:
type: string
type: array
success:
type: integer
timestamp:
format: date-time
type: string
type: object
observedGeneration:
format: int64
type: integer
Expand Down
277 changes: 277 additions & 0 deletions crd-chart/templates/mission-control.flanksource.com_connections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,99 @@ spec:
spec:
description: ConnectionSpec defines the desired state of Connection
properties:
anthropic:
properties:
apiKey:
properties:
name:
type: string
value:
type: string
valueFrom:
properties:
configMapKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
type: object
helmRef:
properties:
key:
description: Key is a JSONPath expression used to
fetch the key from the merged JSON.
type: string
name:
type: string
required:
- key
type: object
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
type: object
serviceAccount:
description: ServiceAccount specifies the service account
whose token should be fetched
type: string
type: object
type: object
model:
type: string
url:
properties:
name:
type: string
value:
type: string
valueFrom:
properties:
configMapKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
type: object
helmRef:
properties:
key:
description: Key is a JSONPath expression used to
fetch the key from the merged JSON.
type: string
name:
type: string
required:
- key
type: object
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
type: object
serviceAccount:
description: ServiceAccount specifies the service account
whose token should be fetched
type: string
type: object
type: object
required:
- apiKey
type: object
aws:
properties:
accessKey:
Expand Down Expand Up @@ -1667,6 +1760,190 @@ spec:
- topic
- username
type: object
ollama:
properties:
apiKey:
properties:
name:
type: string
value:
type: string
valueFrom:
properties:
configMapKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
type: object
helmRef:
properties:
key:
description: Key is a JSONPath expression used to
fetch the key from the merged JSON.
type: string
name:
type: string
required:
- key
type: object
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
type: object
serviceAccount:
description: ServiceAccount specifies the service account
whose token should be fetched
type: string
type: object
type: object
model:
type: string
url:
properties:
name:
type: string
value:
type: string
valueFrom:
properties:
configMapKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
type: object
helmRef:
properties:
key:
description: Key is a JSONPath expression used to
fetch the key from the merged JSON.
type: string
name:
type: string
required:
- key
type: object
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
type: object
serviceAccount:
description: ServiceAccount specifies the service account
whose token should be fetched
type: string
type: object
type: object
type: object
openai:
properties:
apiKey:
properties:
name:
type: string
value:
type: string
valueFrom:
properties:
configMapKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
type: object
helmRef:
properties:
key:
description: Key is a JSONPath expression used to
fetch the key from the merged JSON.
type: string
name:
type: string
required:
- key
type: object
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
type: object
serviceAccount:
description: ServiceAccount specifies the service account
whose token should be fetched
type: string
type: object
type: object
model:
type: string
url:
properties:
name:
type: string
value:
type: string
valueFrom:
properties:
configMapKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
type: object
helmRef:
properties:
key:
description: Key is a JSONPath expression used to
fetch the key from the merged JSON.
type: string
name:
type: string
required:
- key
type: object
secretKeyRef:
properties:
key:
type: string
name:
type: string
required:
- key
type: object
serviceAccount:
description: ServiceAccount specifies the service account
whose token should be fetched
type: string
type: object
type: object
required:
- apiKey
type: object
password:
description: DEPRECATED
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ spec:
type: string
fieldSelector:
type: string
healths:
description: Healths filter resources by the health
items:
type: string
type: array
id:
type: string
includeDeleted:
Expand All @@ -99,16 +104,14 @@ spec:
tag & labels.
type: string
statuses:
description: StringArray represents a one-dimensional array
of the PostgreSQL character types.
description: Statuses filter resources by the status
items:
type: string
type: array
tagSelector:
type: string
types:
description: StringArray represents a one-dimensional array
of the PostgreSQL character types.
description: Types filter resources by the type
items:
type: string
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ spec:
person:
description: ID or email of the person
type: string
playbook:
description: |-
Name or <namespace>/<name> of the playbook to run.
When a playbook is set as the recipient, a run is triggered.
type: string
properties:
additionalProperties:
type: string
Expand All @@ -104,12 +109,31 @@ spec:
If specified, it should be a valid duration string (e.g., "5m", "1h").
type: string
waitForEvalPeriod:
description: |-
WaitForEvalPeriod is an additional delay after WaitFor before evaluating
Kubernetes config health. Format: "5m", "1h"
type: string
required:
- events
- to
type: object
status:
description: NotificationStatus defines the observed state of Notification
properties:
error:
type: string
failed:
type: integer
lastSent:
format: date-time
type: string
pending:
type: integer
sent:
type: integer
status:
type: string
type: object
type: object
served: true
Expand Down
Loading

0 comments on commit 7ffacda

Please sign in to comment.