Skip to content

Commit

Permalink
Merge pull request #9 from littlehorse-enterprises/minor/add-lh-tenant
Browse files Browse the repository at this point in the history
feat(lhtenant): adds lhtenant crd
  • Loading branch information
coltmcnealy-lh authored Jun 24, 2024
2 parents 991e43e + 7eee4e6 commit cddd889
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 4 deletions.
15 changes: 11 additions & 4 deletions charts/lh-operator/crds/lhprincipals.littlehorse.io-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ spec:
name: LH_CLUSTER
priority: 0
type: string
- jsonPath: .status.principalId
name: PRINCIPAL_ID
priority: 0
type: string
- jsonPath: .status.problems
name: PROBLEMS
priority: 0
Expand Down Expand Up @@ -67,21 +71,24 @@ spec:
type: object
type: array
principalName:
description: The name of the `Principal` to be created in the LH Server.
description: "The name of the `Principal` to be created in the LH\
\ Server. If null, uses the LHPrincipal name."
nullable: true
type: string
required:
- principalName
type: object
status:
properties:
isCreated:
description: Whether the Principal has been created in the LH Server
type: boolean
lhCluster:
description: The LHCluster in which the `Principal` is created
description: The LHCluster that the `Principal` belongs to
type: string
observedGeneration:
type: integer
principalId:
description: The ID of the created `Principal` in the LHCluster.
type: string
problems:
type: string
type: object
Expand Down
66 changes: 66 additions & 0 deletions charts/lh-operator/crds/lhtenants.littlehorse.io-v1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Generated by Fabric8 CRDGenerator, manual edits might get overwritten!
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: lhtenants.littlehorse.io
spec:
group: littlehorse.io
names:
kind: LHTenant
plural: lhtenants
shortNames:
- lht
singular: lhtenant
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.isCreated
name: CREATED
priority: 0
type: boolean
- jsonPath: .status.lhCluster
name: LH_CLUSTER
priority: 0
type: string
- jsonPath: .status.problems
name: PROBLEMS
priority: 0
type: string
- jsonPath: .status.tenantId
name: TENANT_ID
priority: 0
type: string
name: v1
schema:
openAPIV3Schema:
properties:
spec:
properties:
tenantName:
description: "Name of the `Tenant` in LittleHorse. If not provided,\
\ inferred from LHTenant name."
nullable: true
type: string
type: object
status:
properties:
isCreated:
description: Whether the `Tenant` has been successfully created in
the LH Cluster
type: boolean
lhCluster:
description: The LHCluster that the Tenant belongs to
type: string
observedGeneration:
type: integer
problems:
type: string
tenantId:
description: The ID of the created `Tenant` in the LHCluster.
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
2 changes: 2 additions & 0 deletions charts/lh-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ spec:
value: "{{ .Values.gatewayApi.enabled }}"
- name: LOG_LEVEL
value: "{{ .Values.logLevel }}"
- name: LHO_THREADPOOL_SIZE
value: "{{ .Values.reconciler.threadPoolSize }}"
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/lh-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ tolerations: []

affinity: {}

reconciler:
threadPoolSize: 8

helm:
addHelmLabels: true

Expand Down

0 comments on commit cddd889

Please sign in to comment.