-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenshift.occie
32 lines (32 loc) · 2.47 KB
/
openshift.occie
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="ASCII"?>
<occi:Extension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" name="openshift" scheme="http://occiware.org/openshift#">
<import href="http://schemas.ogf.org/occi/core#/"/>
<import href="http://schemas.ogf.org/occi/platform#/"/>
<kinds name="OCNamespace" scheme="http://occiware.org/openshift#">
<parent href="http://schemas.ogf.org/occi/platform#//@kinds[term='application']"/>
</kinds>
<kinds name="OCServicePod" scheme="http://occiware.org/openshift#">
<attributes name="openshift.servicepod.name" mutable="true" description="Name of both the OpenShift Pod (its DeploymentConfig actually) and its facade service">
<type xsi:type="occi:StringType" href="http://schemas.ogf.org/occi/core#//@types.0"/>
</attributes>
<attributes name="openshift.servicepod.replicas" mutable="true" description="Number of pod replicas that OpenShift should instantiate">
<type xsi:type="occi:NumericType" href="http://schemas.ogf.org/occi/core#//@types.2"/>
</attributes>
<parent href="http://schemas.ogf.org/occi/platform#//@kinds[term='component']"/>
</kinds>
<kinds name="OCContainer" scheme="http://occiware.org/openshift#">
<attributes name="openshift.container.name" mutable="true" description="name of the OpenShift container">
<type xsi:type="occi:StringType" href="http://schemas.ogf.org/occi/core#//@types.0"/>
</attributes>
<attributes name="openshift.container.image" mutable="true" description="Docker image of the OpenShift container">
<type xsi:type="occi:StringType" href="http://schemas.ogf.org/occi/core#//@types.0"/>
</attributes>
<attributes name="openshift.container.portMappings" mutable="true" description="mappings (targetPort) of service ports (ports.port) to its pod's containers' ports (ports.containerPort), in the format :
servicePort1-containerPort1,servicePort2-containerPort2
Example : 8000-80,8443-443">
<type xsi:type="occi:StringType" href="http://schemas.ogf.org/occi/core#//@types.0"/>
</attributes>
<parent href="http://schemas.ogf.org/occi/platform#//@kinds[term='component']"/>
</kinds>
<kinds name="OCServicePodToContainer" scheme="http://occiware.org/openshift#" source="//@kinds[term='ocservicepod']" target="//@kinds[term='occontainer']">
<parent href="http://schemas.ogf.org/occi/core#//@kinds[term='link']"/>
</kinds>
</occi:Extension>