Make PDR compatible with k8s 1.25 (#108)

* Changed: pdr version

* Changed: dependency update

* Changed: removed eol k8s

* Changed: kind versions update

* Removed: incompatible version with GH actions

* Changed: updated action
This commit is contained in:
Valeriano Manassero 2022-09-16 08:28:41 +02:00 committed by GitHub
parent 8374ece563
commit 4704415662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 17 additions and 14 deletions

View File

@ -1,7 +1,7 @@
name: Lint and Test Charts name: Lint and Test Charts
on: on:
pull_request_target: pull_request:
types: [opened, synchronize, edited, reopened] types: [opened, synchronize, edited, reopened]
paths: paths:
- 'charts/**' - 'charts/**'
@ -22,16 +22,16 @@ jobs:
strategy: strategy:
matrix: matrix:
k8s: k8s:
- v1.22.7 - v1.22.13
- v1.23.6 - v1.23.10
- v1.24.0 - v1.24.4
- v1.25.0
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Create kind ${{ matrix.k8s }} cluster - name: Create kind ${{ matrix.k8s }} cluster
uses: helm/kind-action@v1.2.0 uses: helm/kind-action@v1.3.0
with: with:
version: v0.13.0
node_image: kindest/node:${{ matrix.k8s }} node_image: kindest/node:${{ matrix.k8s }}
- name: Set up chart-testing - name: Set up chart-testing
uses: helm/chart-testing-action@v2.2.1 uses: helm/chart-testing-action@v2.2.1

View File

@ -2,8 +2,9 @@ apiVersion: v2
name: clearml name: clearml
description: MLOps platform description: MLOps platform
type: application type: application
version: "4.2.0" version: "4.2.1"
appVersion: "1.6.0" appVersion: "1.6.0"
kubeVersion: ">= 1.21.0-0 < 1.26.0-0"
home: https://clear.ml home: https://clear.ml
icon: https://raw.githubusercontent.com/allegroai/clearml/master/docs/clearml-logo.svg icon: https://raw.githubusercontent.com/allegroai/clearml/master/docs/clearml-logo.svg
sources: sources:

View File

@ -1,6 +1,6 @@
# ClearML Ecosystem for Kubernetes # ClearML Ecosystem for Kubernetes
![Version: 4.2.0](https://img.shields.io/badge/Version-4.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.6.0](https://img.shields.io/badge/AppVersion-1.6.0-informational?style=flat-square) ![Version: 4.2.1](https://img.shields.io/badge/Version-4.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.6.0](https://img.shields.io/badge/AppVersion-1.6.0-informational?style=flat-square)
MLOps platform MLOps platform
@ -119,6 +119,8 @@ For detailed instructions, see the [Optional Configuration](https://github.com/a
## Requirements ## Requirements
Kubernetes: `>= 1.21.0-0 < 1.26.0-0`
| Repository | Name | Version | | Repository | Name | Version |
|------------|------|---------| |------------|------|---------|
| file://../../dependency_charts/elasticsearch | elasticsearch | 7.16.2 | | file://../../dependency_charts/elasticsearch | elasticsearch | 7.16.2 |

View File

@ -1,6 +1,6 @@
--- ---
{{- if .Values.maxUnavailable }} {{- if .Values.maxUnavailable }}
apiVersion: policy/v1beta1 apiVersion: policy/v1
kind: PodDisruptionBudget kind: PodDisruptionBudget
metadata: metadata:
name: "{{ template "elasticsearch.uname" . }}-pdb" name: "{{ template "elasticsearch.uname" . }}-pdb"

View File

@ -1,6 +1,6 @@
{{- if .Values.podSecurityPolicy.create -}} {{- if .Values.podSecurityPolicy.create -}}
{{- $fullName := include "elasticsearch.uname" . -}} {{- $fullName := include "elasticsearch.uname" . -}}
apiVersion: policy/v1beta1 apiVersion: policy/v1
kind: PodSecurityPolicy kind: PodSecurityPolicy
metadata: metadata:
name: {{ default $fullName .Values.podSecurityPolicy.name | quote }} name: {{ default $fullName .Values.podSecurityPolicy.name | quote }}

View File

@ -1,5 +1,5 @@
{{- if and (include "mongodb.arbiter.enabled" .) .Values.arbiter.pdb.create }} {{- if and (include "mongodb.arbiter.enabled" .) .Values.arbiter.pdb.create }}
apiVersion: policy/v1beta1 apiVersion: policy/v1
kind: PodDisruptionBudget kind: PodDisruptionBudget
metadata: metadata:
name: {{ include "mongodb.fullname" . }}-arbiter name: {{ include "mongodb.fullname" . }}-arbiter

View File

@ -1,5 +1,5 @@
{{- if and (eq .Values.architecture "replicaset") .Values.pdb.create }} {{- if and (eq .Values.architecture "replicaset") .Values.pdb.create }}
apiVersion: policy/v1beta1 apiVersion: policy/v1
kind: PodDisruptionBudget kind: PodDisruptionBudget
metadata: metadata:
name: {{ include "mongodb.fullname" . }} name: {{ include "mongodb.fullname" . }}

View File

@ -58,7 +58,7 @@ Return the appropriate apiVersion for PodSecurityPolicy.
*/}} */}}
{{- define "podSecurityPolicy.apiVersion" -}} {{- define "podSecurityPolicy.apiVersion" -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} {{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "policy/v1beta1" -}} {{- print "policy/v1" -}}
{{- else -}} {{- else -}}
{{- print "extensions/v1beta1" -}} {{- print "extensions/v1beta1" -}}
{{- end -}} {{- end -}}

View File

@ -1,5 +1,5 @@
{{- if .Values.podDisruptionBudget.enabled }} {{- if .Values.podDisruptionBudget.enabled }}
apiVersion: policy/v1beta1 apiVersion: policy/v1
kind: PodDisruptionBudget kind: PodDisruptionBudget
metadata: metadata:
name: {{ template "redis.fullname" . }} name: {{ template "redis.fullname" . }}