Skip to content

Commit 44b60de

Browse files
authored
Merge pull request #107 from ofirnash1/add-gateway-ocp-resource
Add Gateway resource for Service Mesh usage.
2 parents 99459de + caa547c commit 44b60de

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
@@ -284,6 +284,7 @@ class ApiGroup:
284284
NETWORKADDONSOPERATOR_NETWORK_KUBEVIRT_IO = (
285285
"networkaddonsoperator.network.kubevirt.io"
286286
)
287+
NETWORKING_ISTIO_IO = "networking.istio.io"
287288
NETWORKING_K8S_IO = "networking.k8s.io"
288289
NMSTATE_IO = "nmstate.io"
289290
NODEMAINTENANCE_KUBEVIRT_IO = "nodemaintenance.kubevirt.io"
@@ -313,6 +314,7 @@ class ApiVersion:
313314
V1 = "v1"
314315
V1BETA1 = "v1beta1"
315316
V1ALPHA1 = "v1alpha1"
317+
V1ALPHA3 = "v1alpha3"
316318

317319
def __init__(
318320
self,

0 commit comments

Comments
 (0)