mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 01:41:09 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit Based on the comprehensive summary of changes, here are the release notes: - **New Features** - Added a new Kubernetes controller for managing workload monitoring - Introduced telemetry collection capabilities with configurable options - Added new Custom Resource Definitions (CRDs) for Workload and WorkloadMonitor - **Improvements** - Enhanced API infrastructure with new API group and version - Improved deployment configurations for various system components - Added development container and workflow configurations - **Bug Fixes** - Updated import paths to correct domain naming - **Chores** - Updated copyright years - Refined module dependencies - Standardized code linting and testing configurations - **Infrastructure** - Increased `cozystack-api` deployment replicas from 1 to 2 for improved availability <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
89 lines
3.0 KiB
YAML
89 lines
3.0 KiB
YAML
---
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
annotations:
|
|
controller-gen.kubebuilder.io/version: v0.16.4
|
|
name: workloads.cozystack.io
|
|
spec:
|
|
group: cozystack.io
|
|
names:
|
|
kind: Workload
|
|
listKind: WorkloadList
|
|
plural: workloads
|
|
singular: workload
|
|
scope: Namespaced
|
|
versions:
|
|
- additionalPrinterColumns:
|
|
- jsonPath: .status.kind
|
|
name: Kind
|
|
type: string
|
|
- jsonPath: .status.type
|
|
name: Type
|
|
type: string
|
|
- jsonPath: .status.resources.cpu
|
|
name: CPU
|
|
type: string
|
|
- jsonPath: .status.resources.memory
|
|
name: Memory
|
|
type: string
|
|
- jsonPath: .status.operational
|
|
name: Operational
|
|
type: boolean
|
|
name: v1alpha1
|
|
schema:
|
|
openAPIV3Schema:
|
|
description: Workload is the Schema for the workloads API
|
|
properties:
|
|
apiVersion:
|
|
description: |-
|
|
APIVersion defines the versioned schema of this representation of an object.
|
|
Servers should convert recognized schemas to the latest internal value, and
|
|
may reject unrecognized values.
|
|
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
type: string
|
|
kind:
|
|
description: |-
|
|
Kind is a string value representing the REST resource this object represents.
|
|
Servers may infer this from the endpoint the client submits requests to.
|
|
Cannot be updated.
|
|
In CamelCase.
|
|
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
type: string
|
|
metadata:
|
|
type: object
|
|
status:
|
|
description: WorkloadStatus defines the observed state of Workload
|
|
properties:
|
|
kind:
|
|
description: Kind represents the type of workload (redis, postgres,
|
|
etc.)
|
|
type: string
|
|
operational:
|
|
description: Operational indicates if all pods of the workload are
|
|
ready
|
|
type: boolean
|
|
resources:
|
|
additionalProperties:
|
|
anyOf:
|
|
- type: integer
|
|
- type: string
|
|
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
|
x-kubernetes-int-or-string: true
|
|
description: Resources specifies the compute resources allocated to
|
|
this workload
|
|
type: object
|
|
type:
|
|
description: |-
|
|
Type represents the specific role of the workload (redis, sentinel, etc.)
|
|
If not specified, defaults to Kind
|
|
type: string
|
|
required:
|
|
- kind
|
|
- resources
|
|
type: object
|
|
type: object
|
|
served: true
|
|
storage: true
|
|
subresources: {}
|