Skip to content

Commit

Permalink
Add deployApplication endpoint
Browse files Browse the repository at this point in the history
Change-Id: Iaa90275c7954fac9b82bb60e8b55e6431f180857
  • Loading branch information
gsavvas-exz committed Mar 19, 2024
1 parent 8ca9d88 commit 163a11c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class ConfigureEXNConnector {
new Publisher("cluster.deployApplication","cluster.deployApplication.reply",true,false),
new Publisher("cluster.scaleout","cluster.scaleout.reply",true,false),
new Publisher("cluster.scalein","cluster.scalein.reply",true,false),
new Publisher("cluster.label","cluster.label.reply",true,false)
new Publisher("cluster.label","cluster.label.reply",true,false),
new Publisher("cluster.deployapplication","cluster.deployapplication.reply",true,false)
],
[
new Consumer("cloud","cloud.>", amqpSalMessageHandler,true,false),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class ClusterRepository extends AbstractSalRepository{
case 'label':
save(metaData.clusterName+'/label',body,headers,responseType)
break
case 'deployapplication':
save(metaData.clusterName+'/app',body,headers,responseType)
break
default:
return [
"status": HttpStatus.NOT_IMPLEMENTED.value(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ActionResolveService {

private final Map<List<String>,String> ACTION_MAPPING =[
['assign','submit','in','out','scaleout','scalein']:'update',
['define','deploy','deployApplication','label']:'create',
['define','deploy','deployapplication','label']:'create',
['delete','stop','kill'] : 'delete',
['rank'] : 'update'
]
Expand Down

0 comments on commit 163a11c

Please sign in to comment.