INNER CODE UNIT · Python

__init__

vchinnipilli/kubestriker · kubestriker/apps_v1api.py:5

    def __init__(self, service_url, result, namespace=None, token=''):
        if namespace is None:
            namespace = []
        self.result = {}
        if result is not None:
            self.result = result
        self.service_url = service_url
        self.namespaces = namespace
        self.api_end_point = 'apis/apps/v1'
        self.url = self.service_url + "/" + str(self.api_end_point)
        self.session = requests.Session()
        self.session.verify = False
        self.session.headers = {'Authorization': 'Bearer {}'.format(token)}
        self.deployments_data = self.list_deployment_for_all_namespaces()
        self.daemonsets_data = self.list_daemon_set_for_all_namespaces()
        self.replicasets_data = self.list_replica_set_for_all_namespaces()
        self.statefulsets_data = self.list_stateful_set_for_all_namespaces()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…