From aa677745a8121fe09ed935c04597228e4672d2a84304e1c5a221ed37e52df717 Mon Sep 17 00:00:00 2001 From: Kristian-ZH Date: Thu, 29 May 2025 15:55:23 +0300 Subject: [PATCH] Bump ECO version to v0.3.0 --- edge-image-builder-image/artifacts.yaml | 2 +- endpoint-copier-operator-chart/Chart.yaml | 8 ++++---- .../templates/deployment.yaml | 15 +++++++++++++++ .../templates/rbac/role.yaml | 4 ++-- endpoint-copier-operator-chart/values.yaml | 12 +++++++----- endpoint-copier-operator/_service | 2 +- .../endpoint-copier-operator.spec | 6 +++--- release-manifest-image/release_manifest.yaml | 2 +- 8 files changed, 34 insertions(+), 17 deletions(-) diff --git a/edge-image-builder-image/artifacts.yaml b/edge-image-builder-image/artifacts.yaml index 352f358..6c45b14 100644 --- a/edge-image-builder-image/artifacts.yaml +++ b/edge-image-builder-image/artifacts.yaml @@ -5,7 +5,7 @@ metallb: endpoint-copier-operator: chart: endpoint-copier-operator repository: "%%CHART_REPO%%/%%CHART_PREFIX%%" - version: "%%CHART_MAJOR%%.0.0+up0.2.1" + version: "%%CHART_MAJOR%%.0.1+up0.3.0" kubernetes: k3s: selinuxPackage: k3s-selinux-1.6-1.slemicro.noarch diff --git a/endpoint-copier-operator-chart/Chart.yaml b/endpoint-copier-operator-chart/Chart.yaml index c8ae1d5..3fc3a08 100644 --- a/endpoint-copier-operator-chart/Chart.yaml +++ b/endpoint-copier-operator-chart/Chart.yaml @@ -1,8 +1,8 @@ -#!BuildTag: %%CHART_PREFIX%%endpoint-copier-operator:%%CHART_MAJOR%%.0.0_up0.2.1 -#!BuildTag: %%CHART_PREFIX%%endpoint-copier-operator:%%CHART_MAJOR%%.0.0_up0.2.1-%RELEASE% +#!BuildTag: %%CHART_PREFIX%%endpoint-copier-operator:%%CHART_MAJOR%%.0.1_up0.3.0 +#!BuildTag: %%CHART_PREFIX%%endpoint-copier-operator:%%CHART_MAJOR%%.0.1_up0.3.0-%RELEASE% apiVersion: v2 -appVersion: v0.2.0 +appVersion: v0.3.0 description: A Helm chart for Kubernetes name: endpoint-copier-operator type: application -version: "%%CHART_MAJOR%%.0.0+up0.2.1" +version: "%%CHART_MAJOR%%.0.1+up0.3.0" diff --git a/endpoint-copier-operator-chart/templates/deployment.yaml b/endpoint-copier-operator-chart/templates/deployment.yaml index 99c9d40..9be932a 100644 --- a/endpoint-copier-operator-chart/templates/deployment.yaml +++ b/endpoint-copier-operator-chart/templates/deployment.yaml @@ -20,8 +20,23 @@ spec: labels: {{- include "endpoint-copier-operator.selectorLabels" . | nindent 8 }} spec: + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - command: - /manager diff --git a/endpoint-copier-operator-chart/templates/rbac/role.yaml b/endpoint-copier-operator-chart/templates/rbac/role.yaml index 400b0fd..630a2ea 100644 --- a/endpoint-copier-operator-chart/templates/rbac/role.yaml +++ b/endpoint-copier-operator-chart/templates/rbac/role.yaml @@ -7,9 +7,9 @@ metadata: name: {{ include "endpoint-copier-operator.fullname" . }} rules: - apiGroups: - - "" + - "discovery.k8s.io" resources: - - endpoints + - endpointslices verbs: - create - delete diff --git a/endpoint-copier-operator-chart/values.yaml b/endpoint-copier-operator-chart/values.yaml index 7a38372..4c36df6 100644 --- a/endpoint-copier-operator-chart/values.yaml +++ b/endpoint-copier-operator-chart/values.yaml @@ -8,7 +8,7 @@ image: repository: %%IMG_REPO%%/%%IMG_PREFIX%%endpoint-copier-operator pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "0.2.0" + tag: "0.3.0" nameOverride: "endpoint-copier-operator" fullnameOverride: "endpoint-copier-operator" @@ -29,6 +29,8 @@ podSecurityContext: seccompProfile: type: RuntimeDefault +priorityClassName: "system-cluster-critical" + securityContext: allowPrivilegeEscalation: false capabilities: @@ -37,11 +39,11 @@ securityContext: resources: limits: - cpu: 500m - memory: 128Mi - requests: - cpu: 10m + cpu: 100m memory: 64Mi + requests: + cpu: 5m + memory: 32Mi autoscaling: enabled: false diff --git a/endpoint-copier-operator/_service b/endpoint-copier-operator/_service index a6877c9..315bf5e 100644 --- a/endpoint-copier-operator/_service +++ b/endpoint-copier-operator/_service @@ -2,7 +2,7 @@ https://github.com/suse-edge/endpoint-copier-operator git - v0.2.0 + v0.3.0 _auto_ @PARENT_TAG@ enable diff --git a/endpoint-copier-operator/endpoint-copier-operator.spec b/endpoint-copier-operator/endpoint-copier-operator.spec index b1f390e..cf80242 100644 --- a/endpoint-copier-operator/endpoint-copier-operator.spec +++ b/endpoint-copier-operator/endpoint-copier-operator.spec @@ -17,14 +17,14 @@ Name: endpoint-copier-operator -Version: 0.2.0 -Release: 0.2.0 +Version: 0.3.0 +Release: 0.3.0 Summary: Implements a Kubernetes API for copying endpoint resources License: Apache-2.0 URL: https://github.com/suse-edge/endpoint-copier-operator Source: endpoint-copier-operator-%{version}.tar Source1: vendor.tar.gz -BuildRequires: golang(API) = 1.20 +BuildRequires: golang(API) = 1.24 ExcludeArch: s390 ExcludeArch: %{ix86} diff --git a/release-manifest-image/release_manifest.yaml b/release-manifest-image/release_manifest.yaml index b10d8d7..f46feb6 100644 --- a/release-manifest-image/release_manifest.yaml +++ b/release-manifest-image/release_manifest.yaml @@ -138,7 +138,7 @@ spec: - prettyName: EndpointCopierOperator releaseName: endpoint-copier-operator chart: "%%CHART_REPO%%/%%CHART_PREFIX%%endpoint-copier-operator" - version: "%%CHART_MAJOR%%.0.0+up0.2.1" + version: "%%CHART_MAJOR%%.0.1+up0.3.0" - prettyName: Elemental releaseName: elemental-operator chart: oci://registry.suse.com/rancher/elemental-operator-chart -- 2.49.0