Skip to content

Commit

Permalink
Add first set of YAOOK charts
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt committed Jul 4, 2024
1 parent f27ac1e commit 0a3c3f0
Show file tree
Hide file tree
Showing 91 changed files with 24,123 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,20 @@ charts:
version: 0.23.0
repository:
url: https://headlamp-k8s.github.io/headlamp/
# YAOOK charts
- name: crds
version: 0.20240704.1
repository:
url: https://charts.yaook.cloud/operator/stable
- name: infra-operator
version: 0.20240704.1
repository:
url: https://charts.yaook.cloud/operator/stable
- name: keystone-operator
version: 0.20240704.1
repository:
url: https://charts.yaook.cloud/operator/stable
- name: keystone-resources-operator
version: 0.20240704.1
repository:
url: https://charts.yaook.cloud/operator/stable
7 changes: 7 additions & 0 deletions charts/crds/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v2
description: CustomResourceDefinitions used by Yaook.
type: application
name: crds
version: "0.20240704.1"
appVersion: "0.20240704.1"
kubeVersion: ">=1.16.0-0"
1 change: 1 addition & 0 deletions charts/crds/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{/* This is mostly a dummy to ensure the templates directory exists */}}
238 changes: 238 additions & 0 deletions charts/crds/templates/gen-cue-amqp-server-crd.cue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
helm.sh/resource-policy: keep
name: amqpservers.infra.yaook.cloud
spec:
group: infra.yaook.cloud
names:
kind: AMQPServer
plural: amqpservers
shortNames:
- amqps
- amqp
singular: amqpserver
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: Current status of the Resource
jsonPath: .status.phase
name: Phase
type: string
- description: The reason for the current status
jsonPath: .status.conditions[?(@.type=="Converged")].reason
name: Reason
type: string
- description: Informative messages
jsonPath: .status.conditions[?(@.type=="Converged")].message
name: Message
type: string
name: v1
schema:
openAPIV3Schema:
properties:
spec:
properties:
additionalFrontendCertDnsNames:
items:
type: string
type: array
backendCAIssuerRef:
description: ''
properties:
name:
type: string
required:
- name
type: object
frontendIssuerRef:
description: ''
properties:
name:
type: string
required:
- name
type: object
imagePullSecrets:
description: References to image pull secrets which should be included
in all Pods spawned directly or indirectly by this resource.
items:
description: ''
properties:
name:
type: string
required:
- name
type: object
type: array
imageRef:
type: string
implementation:
default: RabbitMQ
enum:
- RabbitMQ
type: string
policies:
additionalProperties:
additionalProperties:
properties:
applyto:
type: string
definition:
type: object
x-kubernetes-preserve-unknown-fields: true
pattern:
type: string
priority:
type: integer
required:
- pattern
- definition
- priority
- applyto
type: object
type: object
type: object
rabbitmqConfig:
additionalProperties:
x-kubernetes-int-or-string: true
type: object
replicas:
default: 3
description: Number of replicas for the service
type: integer
resources:
description: Resource limits for containers spawned by the AMQPServer
properties:
rabbitmq:
description: Define resource requests/limits for the RabbitMQ
container
properties:
limits:
description: Define resource limits for the container
properties:
cpu:
description: CPU time limit for the container
pattern: ^[1-9][0-9]*m?$
type: string
memory:
description: Memory limit for the container
pattern: ^[1-9][0-9]*(E|P|T|G|M|k|Ei|Pi|Ti|Gi|Mi|Ki)?$
type: string
type: object
requests:
description: Define resource requests for the container
properties:
cpu:
description: CPU time request for the container
pattern: ^[1-9][0-9]*m?$
type: string
memory:
description: Memory request for the container
pattern: ^[1-9][0-9]*(E|P|T|G|M|k|Ei|Pi|Ti|Gi|Mi|Ki)?$
type: string
type: object
type: object
type: object
scheduleRuleWhenUnsatisfiable:
default: ScheduleAnyway
description: whenUnsatisfiable indicates how to deal with a Pod if
it doesn't satisfy the spread constraint
enum:
- ScheduleAnyway
- DoNotSchedule
type: string
serviceMonitor:
description: Configure the ServiceMonitor objects created by the operator.
properties:
additionalLabels:
additionalProperties:
type: string
description: Additional labels to set on the ServiceMonitor metadata.
type: object
type: object
storageClassName:
description: Storage class name. If unset, the cluster-wide default
storage class will be used. If that storage class is not set or
does not work, the deployment will be broken. Changing storage classes
after the initial rollout requires manual intervention.
type: string
storageSize:
default: 8Gi
description: Size to request for the PVC. Changing the size after
the initial rollout requires manual intervention.
pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$
type: string
tolerateNodeDown:
default: false
description: If set, Kubernetes will not evict the pod after 300s
in case of a NodeDown or Node unreachable.
type: boolean
required:
- imageRef
- storageSize
- frontendIssuerRef
- backendCAIssuerRef
type: object
status:
properties:
conditions:
items:
properties:
lastTransitionTime:
pattern: '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z'
type: string
lastUpdateTime:
pattern: '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z'
type: string
message:
type: string
reason:
type: string
status:
type: string
type:
enum:
- Converged
- GarbageCollected
type: string
required:
- lastTransitionTime
- lastUpdateTime
- message
- reason
- status
- type
type: object
type: array
x-kubernetes-list-map-keys:
- type
x-kubernetes-list-type: map
observedGeneration:
type: integer
phase:
enum:
- Created
- Updating
- WaitingForDependency
- Updated
- BackingOff
- InvalidConfiguration
type: string
replicas:
type: integer
updatedGeneration:
type: integer
required:
- conditions
- observedGeneration
- phase
type: object
required:
- spec
type: object
served: true
storage: true
subresources:
status: {}
120 changes: 120 additions & 0 deletions charts/crds/templates/gen-cue-amqp-user-crd.cue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
helm.sh/resource-policy: keep
name: amqpusers.infra.yaook.cloud
spec:
group: infra.yaook.cloud
names:
kind: AMQPUser
plural: amqpusers
shortNames: []
singular: amqpuser
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: Current status of the Resource
jsonPath: .status.phase
name: Phase
type: string
- description: The reason for the current status
jsonPath: .status.conditions[?(@.type=="Converged")].reason
name: Reason
type: string
- description: Informative messages
jsonPath: .status.conditions[?(@.type=="Converged")].message
name: Message
type: string
name: v1
schema:
openAPIV3Schema:
properties:
spec:
properties:
passwordSecretKeyRef:
description: ''
properties:
key:
default: password
description: Key within the Secret to extract
type: string
name:
type: string
required:
- name
type: object
serverRef:
description: ''
properties:
name:
type: string
required:
- name
type: object
user:
type: string
required:
- user
- serverRef
- passwordSecretKeyRef
type: object
status:
properties:
conditions:
items:
properties:
lastTransitionTime:
pattern: '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z'
type: string
lastUpdateTime:
pattern: '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z'
type: string
message:
type: string
reason:
type: string
status:
type: string
type:
enum:
- Converged
- GarbageCollected
type: string
required:
- lastTransitionTime
- lastUpdateTime
- message
- reason
- status
- type
type: object
type: array
x-kubernetes-list-map-keys:
- type
x-kubernetes-list-type: map
observedGeneration:
type: integer
phase:
enum:
- Created
- Updating
- WaitingForDependency
- Updated
- BackingOff
- InvalidConfiguration
type: string
updatedGeneration:
type: integer
required:
- conditions
- observedGeneration
- phase
type: object
required:
- spec
type: object
served: true
storage: true
subresources:
status: {}
Loading

0 comments on commit 0a3c3f0

Please sign in to comment.