Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Add MessagingPlan and MessagingAddressPlan types
Browse files Browse the repository at this point in the history
  • Loading branch information
lulf committed Jun 26, 2020
1 parent d1ea283 commit 83c9667
Show file tree
Hide file tree
Showing 26 changed files with 1,989 additions and 1 deletion.
4 changes: 4 additions & 0 deletions api-model/generator/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ type Schema struct {
MessagingAddressList enmasseapi.MessagingAddressList
MessagingEndpoint enmasseapi.MessagingEndpoint
MessagingEndpointList enmasseapi.MessagingEndpointList
MessagingPlan enmasseapi.MessagingPlan
MessagingPlanList enmasseapi.MessagingPlanList
MessagingAddressPlan enmasseapi.MessagingAddressPlan
MessagingAddressPlanList enmasseapi.MessagingAddressPlanList
}

func main() {
Expand Down
18 changes: 18 additions & 0 deletions api-model/src/main/java/io/enmasse/address/model/CoreCrd.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public class CoreCrd {
private static final CustomResourceDefinition MESSAGING_TENANT_CRD;
private static final CustomResourceDefinition MESSAGING_ADDRESS_CRD;
private static final CustomResourceDefinition MESSAGING_ENDPOINT_CRD;
private static final CustomResourceDefinition MESSAGING_PLAN_CRD;
private static final CustomResourceDefinition MESSAGING_ADDRESS_PLAN_CRD;

static {
ADDRESS_CRD = CustomResources.createCustomResource(GROUP, VERSION, Address.KIND);
Expand All @@ -33,6 +35,8 @@ public class CoreCrd {
MESSAGING_TENANT_CRD = CustomResources.createCustomResource(GROUP, VERSION_BETA2, "MessagingTenant");
MESSAGING_ADDRESS_CRD= CustomResources.createCustomResource(GROUP, VERSION_BETA2, "MessagingAddress");
MESSAGING_ENDPOINT_CRD= CustomResources.createCustomResource(GROUP, VERSION_BETA2, "MessagingEndpoint");
MESSAGING_PLAN_CRD= CustomResources.createCustomResource(GROUP, VERSION_BETA2, "MessagingPlan");
MESSAGING_ADDRESS_PLAN_CRD= CustomResources.createCustomResource(GROUP, VERSION_BETA2, "MessagingAddressPlan");
}

public static void registerCustomCrds() {
Expand All @@ -56,6 +60,12 @@ public static void registerCustomCrds() {

KubernetesDeserializer.registerCustomKind(API_VERSION_BETA2, "MessagingEndpoint", MessagingEndpoint.class);
KubernetesDeserializer.registerCustomKind(API_VERSION_BETA2, "MessagingEndpointList", MessagingEndpointList.class);

KubernetesDeserializer.registerCustomKind(API_VERSION_BETA2, "MessagingPlan", MessagingPlan.class);
KubernetesDeserializer.registerCustomKind(API_VERSION_BETA2, "MessagingPlanList", MessagingPlanList.class);

KubernetesDeserializer.registerCustomKind(API_VERSION_BETA2, "MessagingAddressPlan", MessagingAddressPlan.class);
KubernetesDeserializer.registerCustomKind(API_VERSION_BETA2, "MessagingAddressPlanList", MessagingAddressPlanList.class);
}
public static CustomResourceDefinition addresses() {
return ADDRESS_CRD;
Expand Down Expand Up @@ -84,4 +94,12 @@ public static CustomResourceDefinition messagingAddresses() {
public static CustomResourceDefinition messagingEndpoints() {
return MESSAGING_ENDPOINT_CRD;
}

public static CustomResourceDefinition messagingPlans() {
return MESSAGING_PLAN_CRD;
}

public static CustomResourceDefinition messagingAddressPlans() {
return MESSAGING_ADDRESS_PLAN_CRD;
}
}
294 changes: 294 additions & 0 deletions api-model/src/main/resources/schema/kube-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,145 @@
"io.fabric8.kubernetes.api.model.KubernetesResourceList\u003cMessagingAddress\u003e"
]
},
"github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressPlan": {
"type": "object",
"description": "",
"properties": {
"apiVersion": {
"type": "string",
"description": "",
"default": "enmasse.io/v1beta2",
"required": true
},
"kind": {
"type": "string",
"description": "",
"default": "MessagingAddressPlan",
"required": true
},
"metadata": {
"$ref": "#/definitions/kubernetes_apimachinery_ObjectMeta",
"existingJavaType": "io.fabric8.kubernetes.api.model.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressPlanSpec",
"javaType": "MessagingAddressPlanSpec"
},
"status": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressPlanStatus",
"javaType": "MessagingAddressPlanStatus"
}
},
"additionalProperties": true,
"javaType": "MessagingAddressPlan",
"javaInterfaces": [
"io.fabric8.kubernetes.api.model.HasMetadata"
]
},
"github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressPlanCondition": {
"type": "object",
"description": "",
"properties": {
"lastTransitionTime": {
"$ref": "#/definitions/kubernetes_apimachinery_Time",
"existingJavaType": "java.lang.String"
},
"message": {
"type": "string",
"description": ""
},
"reason": {
"type": "string",
"description": ""
},
"status": {
"type": "string",
"description": ""
},
"type": {
"type": "string",
"description": ""
}
},
"additionalProperties": true,
"javaType": "MessagingAddressPlanCondition",
"javaInterfaces": [
"io.fabric8.kubernetes.api.model.KubernetesResource"
]
},
"github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressPlanList": {
"type": "object",
"description": "",
"properties": {
"apiVersion": {
"type": "string",
"description": "",
"default": "enmasse.io/v1beta2",
"required": true
},
"items": {
"type": "array",
"description": "",
"items": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressPlan",
"javaType": "MessagingAddressPlan"
}
},
"kind": {
"type": "string",
"description": "",
"default": "MessagingAddressPlanList",
"required": true
},
"metadata": {
"$ref": "#/definitions/kubernetes_apimachinery_ListMeta",
"existingJavaType": "io.fabric8.kubernetes.api.model.ListMeta"
}
},
"additionalProperties": true,
"javaType": "MessagingAddressPlanList",
"javaInterfaces": [
"io.fabric8.kubernetes.api.model.KubernetesResource",
"io.fabric8.kubernetes.api.model.KubernetesResourceList\u003cMessagingAddressPlan\u003e"
]
},
"github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressPlanSpec": {
"type": "object",
"description": "",
"additionalProperties": true,
"javaType": "MessagingAddressPlanSpec",
"javaInterfaces": [
"io.fabric8.kubernetes.api.model.KubernetesResource"
]
},
"github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressPlanStatus": {
"type": "object",
"description": "",
"properties": {
"conditions": {
"type": "array",
"description": "",
"javaOmitEmpty": true,
"items": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressPlanCondition",
"javaType": "MessagingAddressPlanCondition"
}
},
"message": {
"type": "string",
"description": ""
},
"phase": {
"type": "string",
"description": ""
}
},
"additionalProperties": true,
"javaType": "MessagingAddressPlanStatus",
"javaInterfaces": [
"io.fabric8.kubernetes.api.model.KubernetesResource"
]
},
"github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressSpec": {
"type": "object",
"description": "",
Expand Down Expand Up @@ -1029,6 +1168,145 @@
"io.fabric8.kubernetes.api.model.KubernetesResource"
]
},
"github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingPlan": {
"type": "object",
"description": "",
"properties": {
"apiVersion": {
"type": "string",
"description": "",
"default": "enmasse.io/v1beta2",
"required": true
},
"kind": {
"type": "string",
"description": "",
"default": "MessagingPlan",
"required": true
},
"metadata": {
"$ref": "#/definitions/kubernetes_apimachinery_ObjectMeta",
"existingJavaType": "io.fabric8.kubernetes.api.model.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingPlanSpec",
"javaType": "MessagingPlanSpec"
},
"status": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingPlanStatus",
"javaType": "MessagingPlanStatus"
}
},
"additionalProperties": true,
"javaType": "MessagingPlan",
"javaInterfaces": [
"io.fabric8.kubernetes.api.model.HasMetadata"
]
},
"github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingPlanCondition": {
"type": "object",
"description": "",
"properties": {
"lastTransitionTime": {
"$ref": "#/definitions/kubernetes_apimachinery_Time",
"existingJavaType": "java.lang.String"
},
"message": {
"type": "string",
"description": ""
},
"reason": {
"type": "string",
"description": ""
},
"status": {
"type": "string",
"description": ""
},
"type": {
"type": "string",
"description": ""
}
},
"additionalProperties": true,
"javaType": "MessagingPlanCondition",
"javaInterfaces": [
"io.fabric8.kubernetes.api.model.KubernetesResource"
]
},
"github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingPlanList": {
"type": "object",
"description": "",
"properties": {
"apiVersion": {
"type": "string",
"description": "",
"default": "enmasse.io/v1beta2",
"required": true
},
"items": {
"type": "array",
"description": "",
"items": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingPlan",
"javaType": "MessagingPlan"
}
},
"kind": {
"type": "string",
"description": "",
"default": "MessagingPlanList",
"required": true
},
"metadata": {
"$ref": "#/definitions/kubernetes_apimachinery_ListMeta",
"existingJavaType": "io.fabric8.kubernetes.api.model.ListMeta"
}
},
"additionalProperties": true,
"javaType": "MessagingPlanList",
"javaInterfaces": [
"io.fabric8.kubernetes.api.model.KubernetesResource",
"io.fabric8.kubernetes.api.model.KubernetesResourceList\u003cMessagingPlan\u003e"
]
},
"github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingPlanSpec": {
"type": "object",
"description": "",
"additionalProperties": true,
"javaType": "MessagingPlanSpec",
"javaInterfaces": [
"io.fabric8.kubernetes.api.model.KubernetesResource"
]
},
"github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingPlanStatus": {
"type": "object",
"description": "",
"properties": {
"conditions": {
"type": "array",
"description": "",
"javaOmitEmpty": true,
"items": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingPlanCondition",
"javaType": "MessagingPlanCondition"
}
},
"message": {
"type": "string",
"description": ""
},
"phase": {
"type": "string",
"description": ""
}
},
"additionalProperties": true,
"javaType": "MessagingPlanStatus",
"javaInterfaces": [
"io.fabric8.kubernetes.api.model.KubernetesResource"
]
},
"github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingTenant": {
"type": "object",
"description": "",
Expand Down Expand Up @@ -1538,6 +1816,14 @@
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressList",
"javaType": "MessagingAddressList"
},
"MessagingAddressPlan": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressPlan",
"javaType": "MessagingAddressPlan"
},
"MessagingAddressPlanList": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingAddressPlanList",
"javaType": "MessagingAddressPlanList"
},
"MessagingEndpoint": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingEndpoint",
"javaType": "MessagingEndpoint"
Expand All @@ -1554,6 +1840,14 @@
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingInfrastructureList",
"javaType": "MessagingInfrastructureList"
},
"MessagingPlan": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingPlan",
"javaType": "MessagingPlan"
},
"MessagingPlanList": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingPlanList",
"javaType": "MessagingPlanList"
},
"MessagingTenant": {
"$ref": "#/definitions/github_com_enmasseproject_enmasse_pkg_apis_enmasse_v1beta2_MessagingTenant",
"javaType": "MessagingTenant"
Expand Down
Loading

0 comments on commit 83c9667

Please sign in to comment.