Skip to content

Commit

Permalink
feat: commiting v1.6.1 branch
Browse files Browse the repository at this point in the history
#105

Sumamry of changes:
- Updating to 1.6.1 branch.
- Makefiles changed.
- Tools changed.
  • Loading branch information
Ivan Chvets committed Jan 24, 2023
1 parent 242405d commit e02e12b
Show file tree
Hide file tree
Showing 351 changed files with 3,836 additions and 26,648 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from kubernetes import client

from .. import authz
from . import custom_api

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ def patch_notebook(notebook, namespace, body):


def list_notebook_events(notebook, namespace):
authz.ensure_authorized(
"list", "", "v1", "events", namespace
)

selector = "involvedObject.kind=Notebook,involvedObject.name=" + notebook

return v1_core.list_namespaced_event(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
from . import v1_core


def list_pods(namespace, auth=True, label_selector = None):
def list_pods(namespace, auth=True):
if auth:
authz.ensure_authorized("list", "", "v1", "pods", namespace)

return v1_core.list_namespaced_pod(namespace = namespace, label_selector = label_selector)
return v1_core.list_namespaced_pod(namespace)


def get_pod_logs(namespace, pod, container, auth=True):
if auth:
authz.ensure_authorized("get", "", "v1", "pods", namespace, "log")
authz.ensure_authorized("read", "", "v1", "pods", namespace, "logs")

return v1_core.read_namespaced_pod_log(
namespace=namespace, name=pod, container=container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,6 @@ def list_pvcs(namespace):
)
return v1_core.list_namespaced_persistent_volume_claim(namespace)

def get_pvc(pvc, namespace):
authz.ensure_authorized(
"get", "", "v1", "persistentvolumeclaims", namespace
)
return v1_core.read_namespaced_persistent_volume_claim(pvc, namespace)

def list_pvc_events(namespace, pvc_name):
authz.ensure_authorized(
"list", "", "v1", "events", namespace
)

field_selector = "involvedObject.kind=PersistentVolumeClaim,involvedObject.name=" + pvc_name
return v1_core.list_namespaced_event(
namespace=namespace, field_selector=field_selector
)

def patch_pvc(name, namespace, pvc, auth=True):
if auth:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import json

from flask import jsonify
from kubernetes import client

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"urllib3 >= 1.25.7",
"Werkzeug >= 0.16.0",
"Flask-Cors >= 3.0.8",
"gevent",
]

setuptools.setup(
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": {
"analytics": false
},
"version": 1,
"newProjectRoot": "projects",
"projects": {
Expand All @@ -17,13 +14,13 @@
"options": {
"tsConfig": "projects/kubeflow/tsconfig.lib.json",
"project": "projects/kubeflow/ng-package.json"
},
"configurations": {
}
, "configurations": {
"production": {
"tsConfig": "projects/kubeflow/tsconfig.lib.prod.json"
}
}
},
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
Expand All @@ -33,19 +30,18 @@
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"lintFilePatterns": [
"projects/kubeflow/**/*.ts",
"projects/kubeflow/**/*.html"
"tsConfig": [
"projects/kubeflow/tsconfig.lib.json",
"projects/kubeflow/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "kubeflow",
"cli": {
"defaultCollection": "@angular-eslint/schematics"
}
}},
"defaultProject": "kubeflow"
}

0 comments on commit e02e12b

Please sign in to comment.