aboutsummaryrefslogtreecommitdiffstats
path: root/tutorials/ApacheCNF/templates/cba/Definitions
diff options
context:
space:
mode:
Diffstat (limited to 'tutorials/ApacheCNF/templates/cba/Definitions')
-rw-r--r--tutorials/ApacheCNF/templates/cba/Definitions/CNF.json15
-rw-r--r--tutorials/ApacheCNF/templates/cba/Definitions/data_types.json35
-rw-r--r--tutorials/ApacheCNF/templates/cba/Definitions/resources_definition_types.json19
3 files changed, 63 insertions, 6 deletions
diff --git a/tutorials/ApacheCNF/templates/cba/Definitions/CNF.json b/tutorials/ApacheCNF/templates/cba/Definitions/CNF.json
index 2e30ce01..4f44e8a1 100644
--- a/tutorials/ApacheCNF/templates/cba/Definitions/CNF.json
+++ b/tutorials/ApacheCNF/templates/cba/Definitions/CNF.json
@@ -56,6 +56,15 @@
"config-deploy",
"config-deploy-setup"
]
+ },
+ "status-check-max-count": {
+ "get_attribute": [
+ "config-setup-process",
+ "",
+ "assignment-map",
+ "config-deploy",
+ "status-check-max-count"
+ ]
}
}
},
@@ -453,9 +462,6 @@
],
"on_success": [
"health-check-process"
- ],
- "on_failure": [
- "handle_error"
]
},
"health-check-process": {
@@ -468,9 +474,6 @@
],
"on_success": [
"collect-results"
- ],
- "on_failure": [
- "handle_error"
]
},
"handle_error": {
diff --git a/tutorials/ApacheCNF/templates/cba/Definitions/data_types.json b/tutorials/ApacheCNF/templates/cba/Definitions/data_types.json
index 603b0baa..1573c81c 100644
--- a/tutorials/ApacheCNF/templates/cba/Definitions/data_types.json
+++ b/tutorials/ApacheCNF/templates/cba/Definitions/data_types.json
@@ -30,6 +30,17 @@
"description": "",
"required": false,
"type": "string"
+ },
+ "replica-count": {
+ "description": "replica count for apache pods",
+ "type": "integer",
+ "required": false
+ },
+ "status-check-max-count": {
+ "description": "max status check count for pods",
+ "type": "integer",
+ "required": false,
+ "default": 30
}
},
"derived_from": "tosca.datatypes.Dynamic"
@@ -57,6 +68,12 @@
"description": "",
"required": false,
"type": "string"
+ },
+ "status-check-max-count": {
+ "description": "max status check count for pods",
+ "type": "integer",
+ "required": false,
+ "default": 30
}
},
"derived_from": "tosca.datatypes.Dynamic"
@@ -89,6 +106,12 @@
"description": "replica count for apache pods",
"type": "integer",
"default": 2
+ },
+ "status-check-max-count": {
+ "description": "max status check count for pods",
+ "type": "integer",
+ "required": false,
+ "default": 30
}
},
"derived_from": "tosca.datatypes.Dynamic"
@@ -121,6 +144,12 @@
"description": "replica count for apache pods",
"type": "integer",
"default": 1
+ },
+ "status-check-max-count": {
+ "description": "max status check count for pods",
+ "type": "integer",
+ "required": false,
+ "default": 30
}
},
"derived_from": "tosca.datatypes.Dynamic"
@@ -158,6 +187,12 @@
"description": "the data content of the policy request parameters",
"required": false,
"type": "json"
+ },
+ "status-check-max-count": {
+ "description": "max status check count for pods",
+ "type": "integer",
+ "required": false,
+ "default": 30
}
},
"derived_from": "tosca.datatypes.Dynamic"
diff --git a/tutorials/ApacheCNF/templates/cba/Definitions/resources_definition_types.json b/tutorials/ApacheCNF/templates/cba/Definitions/resources_definition_types.json
index 38b5fee4..31f04c11 100644
--- a/tutorials/ApacheCNF/templates/cba/Definitions/resources_definition_types.json
+++ b/tutorials/ApacheCNF/templates/cba/Definitions/resources_definition_types.json
@@ -1439,6 +1439,25 @@
}
}
},
+ "status-check-max-count": {
+ "tags": "max status check count for pods",
+ "name": "status-check-max-count",
+ "property": {
+ "description": "max status check count for pods",
+ "type": "integer"
+ },
+ "group": "default",
+ "updated-by": "Lukasz Rajewski <lukasz.rajewski@t-mobile.pl>",
+ "sources": {
+ "input": {
+ "type": "source-input"
+ },
+ "default": {
+ "type": "source-default",
+ "properties": {}
+ }
+ }
+ },
"service-instance-name": {
"tags": "service-instance-name",
"name": "service-instance-name",