diff --git a/charts/lh-operator/crds/lhprincipals.littlehorse.io-v1.yml b/charts/lh-operator/crds/lhprincipals.littlehorse.io-v1.yml index 52b0c23..9cb395b 100644 --- a/charts/lh-operator/crds/lhprincipals.littlehorse.io-v1.yml +++ b/charts/lh-operator/crds/lhprincipals.littlehorse.io-v1.yml @@ -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 @@ -67,10 +71,10 @@ 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: @@ -78,10 +82,13 @@ spec: 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 diff --git a/charts/lh-operator/crds/lhtenants.littlehorse.io-v1.yml b/charts/lh-operator/crds/lhtenants.littlehorse.io-v1.yml new file mode 100644 index 0000000..4917c57 --- /dev/null +++ b/charts/lh-operator/crds/lhtenants.littlehorse.io-v1.yml @@ -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: {} diff --git a/charts/lh-operator/templates/deployment.yaml b/charts/lh-operator/templates/deployment.yaml index 96190ec..aeefbb7 100644 --- a/charts/lh-operator/templates/deployment.yaml +++ b/charts/lh-operator/templates/deployment.yaml @@ -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 }} diff --git a/charts/lh-operator/values.yaml b/charts/lh-operator/values.yaml index 059a1e9..46f6a48 100644 --- a/charts/lh-operator/values.yaml +++ b/charts/lh-operator/values.yaml @@ -76,6 +76,9 @@ tolerations: [] affinity: {} +reconciler: + threadPoolSize: 8 + helm: addHelmLabels: true