mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 15:41:17 +00:00
Signed-off-by: Andrei Kvapil <kvapss@gmail.com> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a RESTful API for managing `Application` resources, enabling CRUD operations with HelmRelease integration. - Added validation functions for `Application` and `ApplicationSpec`, laying the groundwork for future validation rules. - Implemented configuration management for resources, allowing for structured application and release settings. - **Bug Fixes** - Addressed API rule violations related to naming conventions and missing types in the CozyStack API definitions. - **Tests** - Added comprehensive tests for round-trip functionality and version compatibility within the Apps API server. - **Documentation** - Introduced documentation for the `v1alpha1` API version, including licensing and code generation annotations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
36 lines
871 B
YAML
36 lines
871 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: cozystack-api
|
|
namespace: cozy-system
|
|
labels:
|
|
app: cozystack-api
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: cozystack-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: cozystack-api
|
|
annotations:
|
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
|
spec:
|
|
serviceAccountName: cozystack-api
|
|
containers:
|
|
- name: cozystack-api
|
|
image: "{{ .Values.cozystackAPI.image }}"
|
|
args: ["--config=/config/config.yaml"]
|
|
volumeMounts:
|
|
- name: config-volume
|
|
mountPath: /config/config.yaml
|
|
subPath: config.yaml
|
|
volumes:
|
|
- name: config-volume
|
|
configMap:
|
|
name: cozystack-api
|
|
items:
|
|
- key: config.yaml
|
|
path: config.yaml
|