Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA validation #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
1 change: 1 addition & 0 deletions src/KubeLibrary/KubeLibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def _add_api(self, reference, class_name):
self.__dict__[reference] = class_name(self.api_client)
if not self.cert_validation:
self.__dict__[reference].api_client.rest_client.pool_manager.connection_pool_kw['cert_reqs'] = ssl.CERT_NONE
self.__dict__[reference].api_client.configuration.verify_ssl = False

def k8s_api_ping(self):
"""Performs GET on /api/v1/ for simple check of API availability.
Expand Down
2 changes: 1 addition & 1 deletion testcases/reload-config/reload-config_kw.robot
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ${KUBE_CONFIG2} %{KUBE_CONFIG2=./cluster2-conf}

*** Keywords ***
Connected to cluster-1
Reload Config kube_config=${KUBE_CONFIG1} incluster=False cert_validation=False
Reload Config kube_config=${KUBE_CONFIG1} incluster=False cert_validation=True
K8s Api Ping

Cluster has namespace
Expand Down