From 85cb75957f95f12e31f1021cfcbe9379163b17a2 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Thu, 25 Apr 2024 12:03:50 +0800 Subject: [PATCH] release: v0.7.0 Signed-off-by: Neko Ayaka --- api/ollama/v1/zz_generated.deepcopy.go | 1 + config/manager/kustomization.yaml | 2 +- dist/install.yaml | 60 +++++++++++++++++++++++++- 3 files changed, 61 insertions(+), 2 deletions(-) diff --git a/api/ollama/v1/zz_generated.deepcopy.go b/api/ollama/v1/zz_generated.deepcopy.go index 446bec0..2e92809 100644 --- a/api/ollama/v1/zz_generated.deepcopy.go +++ b/api/ollama/v1/zz_generated.deepcopy.go @@ -117,6 +117,7 @@ func (in *ModelSpec) DeepCopyInto(out *ModelSpec) { *out = make([]corev1.LocalObjectReference, len(*in)) copy(*out, *in) } + in.Resources.DeepCopyInto(&out.Resources) if in.StorageClassName != nil { in, out := &in.StorageClassName, &out.StorageClassName *out = new(string) diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index c1d8ea7..5be5afe 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -5,4 +5,4 @@ kind: Kustomization images: - name: controller newName: ghcr.io/nekomeowww/ollama-operator - newTag: 0.6.0 + newTag: 0.7.0 diff --git a/dist/install.yaml b/dist/install.yaml index 7b29db6..feca4ab 100644 --- a/dist/install.yaml +++ b/dist/install.yaml @@ -129,6 +129,64 @@ spec: zero and not specified. Defaults to 1. format: int32 type: integer + resources: + description: |- + Compute Resources required by this container. + Cannot be updated. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + properties: + claims: + description: |- + Claims lists the names of resources, defined in spec.resourceClaims, + that are used by this container. + + + This is an alpha field and requires enabling the + DynamicResourceAllocation feature gate. + + + This field is immutable. It can only be set for containers. + items: + description: ResourceClaim references one entry in PodSpec.ResourceClaims. + properties: + name: + description: |- + Name must match the name of one entry in pod.spec.resourceClaims of + the Pod where this field is used. It makes that resource available + inside a container. + type: string + required: + - name + type: object + type: array + x-kubernetes-list-map-keys: + - name + x-kubernetes-list-type: map + limits: + 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: |- + Limits describes the maximum amount of compute resources allowed. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + type: object + requests: + 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: |- + Requests describes the minimum amount of compute resources required. + If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, + otherwise to an implementation-defined value. Requests cannot exceed Limits. + More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + type: object + type: object storageClassName: description: |- storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value @@ -556,7 +614,7 @@ spec: - --leader-elect command: - /manager - image: ghcr.io/nekomeowww/ollama-operator:0.6.0 + image: ghcr.io/nekomeowww/ollama-operator:0.7.0 livenessProbe: httpGet: path: /healthz