Skip to content

Commit

Permalink
[Helm] Update Notebook-Controller Chart for kubeflow v1.7.0 (#587)
Browse files Browse the repository at this point in the history
- update notebook-controller helm chart per kubeflow v1.7.0-rc.1
upstream
- upstream notebook-controller has added params config for culling
(https://github.com/kubeflow/manifests/blob/master/apps/jupyter/notebook-controller/upstream/manager/params.env);
update awsconfig for notebook culling parameters per upstream standard
  • Loading branch information
jsitu777 authored Mar 2, 2023
1 parent 0988cb2 commit 1a42f54
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 89 deletions.
26 changes: 0 additions & 26 deletions awsconfigs/apps/notebook-controller/deployment_patch.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions awsconfigs/apps/notebook-controller/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ kind: Kustomization
namespace: kubeflow
bases:
- ../../../upstream/apps/jupyter/notebook-controller/upstream/overlays/kubeflow
patchesStrategicMerge:
- deployment_patch.yaml
configMapGenerator:
- name: config
behavior: merge
Expand Down
6 changes: 3 additions & 3 deletions awsconfigs/apps/notebook-controller/params.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
enableCulling=false
cullIdleTime=30
idlenessCheckPeriod=5
ENABLE_CULLING=false
CULL_IDLE_TIME=30
IDLENESS_CHECK_PERIOD=5
24 changes: 3 additions & 21 deletions charts/apps/notebook-controller/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
apiVersion: v2
name: notebook-controller
appVersion: v1.7.0
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
name: notebook-controller
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v1.6.1"
version: 0.2.0

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
data:
CLUSTER_DOMAIN: cluster.local
CULL_IDLE_TIME: '{{ .Values.cullingPolicy.cullIdleTime }}'
ENABLE_CULLING: '{{ .Values.cullingPolicy.enableCulling }}'
IDLENESS_CHECK_PERIOD: '{{ .Values.cullingPolicy.idlenessCheckPeriod }}'
ISTIO_GATEWAY: kubeflow/kubeflow-gateway
USE_ISTIO: 'true'
kind: ConfigMap
metadata:
annotations: {}
labels:
app: notebook-controller
kustomize.component: notebook-controller
name: notebook-controller-config-mf8876789d
namespace: kubeflow
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,38 @@ spec:
- command:
- /manager
env:
- name: ENABLE_CULLING
- name: USE_ISTIO
valueFrom:
configMapKeyRef:
key: enableCulling
name: notebook-controller-config-9675dd2fhk
- name: CULL_IDLE_TIME
key: USE_ISTIO
name: notebook-controller-config-mf8876789d
- name: ISTIO_GATEWAY
valueFrom:
configMapKeyRef:
key: cullIdleTime
name: notebook-controller-config-9675dd2fhk
- name: IDLENESS_CHECK_PERIOD
key: ISTIO_GATEWAY
name: notebook-controller-config-mf8876789d
- name: CLUSTER_DOMAIN
valueFrom:
configMapKeyRef:
key: idlenessCheckPeriod
name: notebook-controller-config-9675dd2fhk
- name: USE_ISTIO
key: CLUSTER_DOMAIN
name: notebook-controller-config-mf8876789d
- name: ENABLE_CULLING
valueFrom:
configMapKeyRef:
key: USE_ISTIO
name: notebook-controller-config-9675dd2fhk
- name: ISTIO_GATEWAY
key: ENABLE_CULLING
name: notebook-controller-config-mf8876789d
- name: CULL_IDLE_TIME
valueFrom:
configMapKeyRef:
key: ISTIO_GATEWAY
name: notebook-controller-config-9675dd2fhk
image: docker.io/kubeflownotebookswg/notebook-controller:v1.6.1
imagePullPolicy: Always
key: CULL_IDLE_TIME
name: notebook-controller-config-mf8876789d
- name: IDLENESS_CHECK_PERIOD
valueFrom:
configMapKeyRef:
key: IDLENESS_CHECK_PERIOD
name: notebook-controller-config-mf8876789d
image: docker.io/kubeflownotebookswg/notebook-controller:v1.7.0-rc.1
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /healthz
Expand Down
4 changes: 2 additions & 2 deletions tools/helmify/src/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ notebook-controller:
kustomization_paths:
- awsconfigs/apps/notebook-controller
output_helm_chart_path: charts/apps/notebook-controller
version: 0.1.1
app_version: v1.6.1
version: 0.2.0
app_version: v1.7.0
params:
template_paths:
- tools/helmify/template/notebook-controller/params.env
Expand Down
6 changes: 3 additions & 3 deletions tools/helmify/template/notebook-controller/params.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
enableCulling={{ .Values.cullingPolicy.enableCulling }}
cullIdleTime={{ .Values.cullingPolicy.cullIdleTime }}
idlenessCheckPeriod={{ .Values.cullingPolicy.idlenessCheckPeriod }}
ENABLE_CULLING={{ .Values.cullingPolicy.enableCulling }}
CULL_IDLE_TIME={{ .Values.cullingPolicy.cullIdleTime }}
IDLENESS_CHECK_PERIOD={{ .Values.cullingPolicy.idlenessCheckPeriod }}

0 comments on commit 1a42f54

Please sign in to comment.