Skip to content

Commit

Permalink
fixup! Add basic support for network policies
Browse files Browse the repository at this point in the history
  • Loading branch information
qvicksilver authored and edaniszewski committed Aug 17, 2020
1 parent 6145ffd commit b719cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubetest/objects/networkpolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class NetworkPolicy(ApiObject):
"""Kubetest wrapper around a Kubernetes `NetworkPolicy`_ API Object.
The actual ``kubernetes.client.ExtensionsV1beta1Api`` instance that this
The actual ``kubernetes.client.NetworkingV1Api`` instance that this
wraps can be accessed via the ``obj`` instance member.
This wrapper provides some convenient functionality around the
Expand All @@ -22,7 +22,7 @@ class NetworkPolicy(ApiObject):
https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#networkpolicy-v1-networking-k8s-io
"""

obj_type = client.NetworkingV1Api
obj_type = client.V1NetworkPolicy

api_clients = {
'preffered': client.NetworkingV1Api,
Expand Down

0 comments on commit b719cc2

Please sign in to comment.