Skip to content

Commit caa547c

Browse files
committed
Add Gateway resource to openshift python wrapper for Service Mesh.
1 parent f9ae22f commit caa547c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

ocp_resources/gateway.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- coding: utf-8 -*-
2+
3+
from ocp_resources.resource import NamespacedResource
4+
5+
6+
class Gateway(NamespacedResource):
7+
"""
8+
Gateway object.
9+
"""
10+
11+
api_version = NamespacedResource.ApiGroup.NETWORKING_ISTIO_IO

ocp_resources/resource.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ class ApiGroup:
283283
NETWORKADDONSOPERATOR_NETWORK_KUBEVIRT_IO = (
284284
"networkaddonsoperator.network.kubevirt.io"
285285
)
286+
NETWORKING_ISTIO_IO = "networking.istio.io"
286287
NETWORKING_K8S_IO = "networking.k8s.io"
287288
NMSTATE_IO = "nmstate.io"
288289
NODEMAINTENANCE_KUBEVIRT_IO = "nodemaintenance.kubevirt.io"
@@ -312,6 +313,7 @@ class ApiVersion:
312313
V1 = "v1"
313314
V1BETA1 = "v1beta1"
314315
V1ALPHA1 = "v1alpha1"
316+
V1ALPHA3 = "v1alpha3"
315317

316318
def __init__(
317319
self,

0 commit comments

Comments
 (0)