Skip to content

Commit

Permalink
publish v0.4.0 (#62)
Browse files Browse the repository at this point in the history
* publish v0.4.0

* make internal methods not visible in docs

* remove prerelease
  • Loading branch information
m-wcislo authored Mar 12, 2021
1 parent 6446a9b commit 2a47424
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## In progress

### Added

## [0.4.0] - 2021-03-12
### Added
- Kubeconfig context support [#36](https://github.com/devopsspiral/KubeLibrary/pull/36) by [@m-wcislo](https://github.com/m-wcislo)
- Keyword for getting secrets [#31](https://github.com/devopsspiral/KubeLibrary/pull/31 )by [@Nilsty](https://github.com/Nilsty)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="robotframework-kubelibrary",
version="0.3.0",
version="0.4.0",
author="Michał Wcisło",
author_email="[email protected]",
description="Kubernetes library for Robot Framework",
Expand Down
16 changes: 8 additions & 8 deletions src/KubeLibrary/KubeLibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ def reload_config(self, kube_config=None, context=None, incluster=False, cert_va
except TypeError:
logger.error('Neither KUBECONFIG nor ~/.kube/config available.')

self.add_api('v1', client.CoreV1Api)
self.add_api('extensionsv1beta1', client.ExtensionsV1beta1Api)
self.add_api('batchv1', client.BatchV1Api)
self.add_api('appsv1', client.AppsV1Api)
self.add_api('batchv1_beta1', client.BatchV1beta1Api)
self.add_api('custom_object', client.CustomObjectsApi)

def add_api(self, reference, class_name):
self._add_api('v1', client.CoreV1Api)
self._add_api('extensionsv1beta1', client.ExtensionsV1beta1Api)
self._add_api('batchv1', client.BatchV1Api)
self._add_api('appsv1', client.AppsV1Api)
self._add_api('batchv1_beta1', client.BatchV1beta1Api)
self._add_api('custom_object', client.CustomObjectsApi)

def _add_api(self, reference, class_name):
self.__dict__[reference] = class_name()
if not self.cert_validation:
self.__dict__[reference].api_client.rest_client.pool_manager.connection_pool_kw['cert_reqs'] = ssl.CERT_NONE
Expand Down
4 changes: 2 additions & 2 deletions testcases/cronjob/cronjob.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Resource ./cronjob_kw.robot

*** Test Cases ***
Job test case example
[Tags] other prerelaese
[Tags] other
List all cron jobs in namespace kubelib-tests

Jobs by label
[Tags] other prerelease
[Tags] other
List cron jobs with label ${cron_job_name} kubelib-tests TestLabel=mytestlabel
1 change: 0 additions & 1 deletion testcases/custom_objects/custom_objects.robot
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*** Settings ***
Library KubeLibrary
Default Tags prerelease

*** Test Cases ***
Get List Of Cluster Custom Objects
Expand Down
2 changes: 1 addition & 1 deletion testcases/daemonset/daemonsets.robot
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Resource ./daemonsets_kw.robot

*** Test Cases ***
Daemonsets test case example
[Tags] other prerelease
[Tags] other
List all daemonsets kubelib-tests
List daemonsets filtered by label kubelib-tests TestLabel=mytestlabel
1 change: 0 additions & 1 deletion testcases/healthcheck/healthcheck.robot
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
*** Settings ***
Library Collections
Resource ./healthcheck_kw.robot
Default Tags prerelease

*** Test Cases ***
Healthcheck
Expand Down
2 changes: 1 addition & 1 deletion testcases/secrets/secret.robot
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Resource ./secret_kw.robot

*** Test Cases ***
Secrets test case example
[Tags] grafana prerelease
[Tags] grafana
List all secrets in namespace default
Read grafana secrets

0 comments on commit 2a47424

Please sign in to comment.