Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion api/api_client_temp.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@
from six import PY3, integer_types, iteritems, text_type
from six.moves.urllib.parse import quote

from kubernetes.client import models, V1ObjectMeta, V1RoleRef, V1Subject, V1ClusterRoleBinding, V1ClusterRole, V1ClusterRoleList, V1ClusterRoleBindingList, V1PolicyRule
from kubernetes.client import models, V1ObjectMeta, V1RoleRef, V1ClusterRoleBinding, V1ClusterRole, V1ClusterRoleList, V1ClusterRoleBindingList, V1PolicyRule
from kubernetes.client.configuration import Configuration
from kubernetes.client.rest import ApiException, RESTClientObject
try:
from kubernetes.client import V1Subject
except ImportError:
from kubernetes.client import RbacV1Subject as V1Subject

class ApiClientTemp(object):
"""
Expand Down
6 changes: 5 additions & 1 deletion api/static_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
from .base_client_api import BaseApiClient
from kubernetes.client import (
V1VolumeProjection, V1ServiceAccountTokenProjection, V1SecretProjection, V1DownwardAPIProjection,
V1RoleList, V1Role, V1ObjectMeta, V1PolicyRule, V1RoleBinding, V1RoleRef, V1Subject,
V1RoleList, V1Role, V1ObjectMeta, V1PolicyRule, V1RoleBinding, V1RoleRef,
V1RoleBindingList, V1PodList, V1Pod, V1PodSpec, V1Container, V1Volume, V1PodStatus,
V1SecurityContext, V1HostPathVolumeSource, V1ProjectedVolumeSource,V1VolumeMount,V1ConfigMapProjection,
V1DownwardAPIVolumeFile,V1ObjectFieldSelector,V1ContainerStatus,V1Capabilities,V1PodSecurityContext,V1ContainerPort
)
try:
from kubernetes.client import V1Subject
except ImportError:
from kubernetes.client import RbacV1Subject as V1Subject

class StaticApiClient(BaseApiClient):
def __init__(self, input_file):
Expand Down