Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #164 from fabianvf/explict-crd-apiversion
Browse files Browse the repository at this point in the history
Use explicit API version for retrieving CRD API
  • Loading branch information
roycaihw committed Sep 24, 2019
2 parents 6ca7a5b + 8ef5857 commit f2ae80b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dynamic/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def test_cluster_custom_resources(self):
changeme_api = client.resources.get(
api_version='apps.example.com/v1', kind='ClusterChangeMe')

crd_api = client.resources.get(kind='CustomResourceDefinition')
crd_api = client.resources.get(
api_version='apiextensions.k8s.io/v1beta1',
kind='CustomResourceDefinition')
name = 'clusterchangemes.apps.example.com'
crd_manifest = {
'apiVersion': 'apiextensions.k8s.io/v1beta1',
Expand Down Expand Up @@ -138,7 +140,9 @@ def test_namespaced_custom_resources(self):
changeme_api = client.resources.get(
api_version='apps.example.com/v1', kind='ChangeMe')

crd_api = client.resources.get(kind='CustomResourceDefinition')
crd_api = client.resources.get(
api_version='apiextensions.k8s.io/v1beta1',
kind='CustomResourceDefinition')
name = 'changemes.apps.example.com'
crd_manifest = {
'apiVersion': 'apiextensions.k8s.io/v1beta1',
Expand Down

0 comments on commit f2ae80b

Please sign in to comment.