From b52dbf2ca348996fdabeb8a7adfce72d1f4cb04a Mon Sep 17 00:00:00 2001 From: my-git9 Date: Mon, 21 Nov 2022 17:47:07 +0800 Subject: [PATCH] [bitnami/jupyterhub] fix apiversion hardcode for NetworkPolicy (#13576) Signed-off-by: xin.li Signed-off-by: xin.li --- bitnami/jupyterhub/Chart.yaml | 2 +- bitnami/jupyterhub/templates/hub/networkpolicy.yaml | 2 +- bitnami/jupyterhub/templates/proxy/networkpolicy.yaml | 2 +- bitnami/jupyterhub/templates/singleuser/networkpolicy.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bitnami/jupyterhub/Chart.yaml b/bitnami/jupyterhub/Chart.yaml index c371cbb35..942485ae2 100644 --- a/bitnami/jupyterhub/Chart.yaml +++ b/bitnami/jupyterhub/Chart.yaml @@ -26,4 +26,4 @@ name: jupyterhub sources: - https://github.com/bitnami/containers/tree/main/bitnami/jupyterhub - https://github.com/jupyterhub/jupyterhub -version: 3.0.1 +version: 3.0.2 diff --git a/bitnami/jupyterhub/templates/hub/networkpolicy.yaml b/bitnami/jupyterhub/templates/hub/networkpolicy.yaml index 16bf1c8f3..db4ed2ae3 100644 --- a/bitnami/jupyterhub/templates/hub/networkpolicy.yaml +++ b/bitnami/jupyterhub/templates/hub/networkpolicy.yaml @@ -1,5 +1,5 @@ {{- if .Values.hub.networkPolicy.enabled -}} -apiVersion: networking.k8s.io/v1 +apiVersion: {{ include "common.capabilities.networkPolicy.apiVersion" . }} kind: NetworkPolicy metadata: labels: {{- include "common.labels.standard" . | nindent 4 }} diff --git a/bitnami/jupyterhub/templates/proxy/networkpolicy.yaml b/bitnami/jupyterhub/templates/proxy/networkpolicy.yaml index 6c4564bf6..0feeffc15 100644 --- a/bitnami/jupyterhub/templates/proxy/networkpolicy.yaml +++ b/bitnami/jupyterhub/templates/proxy/networkpolicy.yaml @@ -1,5 +1,5 @@ {{- if .Values.proxy.networkPolicy.enabled -}} -apiVersion: networking.k8s.io/v1 +apiVersion: {{ include "common.capabilities.networkPolicy.apiVersion" . }} kind: NetworkPolicy metadata: labels: {{- include "common.labels.standard" . | nindent 4 }} diff --git a/bitnami/jupyterhub/templates/singleuser/networkpolicy.yaml b/bitnami/jupyterhub/templates/singleuser/networkpolicy.yaml index b3fe79145..7715315e1 100644 --- a/bitnami/jupyterhub/templates/singleuser/networkpolicy.yaml +++ b/bitnami/jupyterhub/templates/singleuser/networkpolicy.yaml @@ -1,5 +1,5 @@ {{- if .Values.singleuser.networkPolicy.enabled -}} -apiVersion: networking.k8s.io/v1 +apiVersion: {{ include "common.capabilities.networkPolicy.apiVersion" . }} kind: NetworkPolicy metadata: labels: {{- include "common.labels.standard" . | nindent 4 }}