mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-27 00:36:52 -06:00
Fixed an issue while deploying the PostgreSQL on the BigAnimal, the Public IP addresses were not added.
This commit is contained in:
parent
f725cc2307
commit
a86a8c6a34
@ -389,9 +389,9 @@ def deploy_on_biganimal(data):
|
||||
_private_network
|
||||
]
|
||||
|
||||
if 'public_ip' in data['instance_details']:
|
||||
if 'biganimal_public_ip' in data['instance_details']:
|
||||
args.append('--public-ip')
|
||||
args.append(str(data['instance_details']['public_ip']))
|
||||
args.append(str(data['instance_details']['biganimal_public_ip']))
|
||||
|
||||
_cmd_msg = '{0} {1} {2}'.format(_cmd, _cmd_script, ' '.join(args))
|
||||
try:
|
||||
|
@ -157,7 +157,7 @@ export function getBigAnimalSummary(cloud, bigAnimalInstanceData, bigAnimalDatab
|
||||
createData('Instance name', bigAnimalInstanceData.name),
|
||||
createData('Region', bigAnimalInstanceData.region),
|
||||
createData('Cluster type', bigAnimalInstanceData.cloud_type),
|
||||
createData('Public IPs', bigAnimalInstanceData.public_ip),
|
||||
createData('Public IPs', bigAnimalInstanceData.biganimal_public_ip),
|
||||
];
|
||||
|
||||
let instance_size = bigAnimalInstanceData.instance_size.split('||');
|
||||
|
@ -142,7 +142,7 @@ define('pgadmin.misc.cloud', [
|
||||
onrestore:function(){
|
||||
Alertify.cloudWizardDialog().elements.modal.style.maxHeight=0;
|
||||
},
|
||||
}).resizeTo(920, 620);
|
||||
}).resizeTo(920, 650);
|
||||
},
|
||||
|
||||
|
||||
|
@ -464,7 +464,7 @@ class BigAnimalNetworkSchema extends BaseUISchema {
|
||||
super({
|
||||
oid: undefined,
|
||||
cloud_type: '',
|
||||
public_ip: '',
|
||||
biganimal_public_ip: '',
|
||||
...initValues
|
||||
});
|
||||
|
||||
@ -488,8 +488,10 @@ class BigAnimalNetworkSchema extends BaseUISchema {
|
||||
{'label': gettext('Private'), 'value': 'private'},
|
||||
{'label': gettext('Public'), 'value': 'public'},
|
||||
], noEmpty: true,
|
||||
helpMessage: gettext('Private networking allows only IP addresses within your private network to connect to your cluster.'
|
||||
+ ' Public means that any client can connect to your cluster’s public IP address over the internet.')
|
||||
},{
|
||||
id: 'public_ip', label: gettext('Public IP range'), type: 'text',
|
||||
id: 'biganimal_public_ip', label: gettext('Public IP range'), type: 'text',
|
||||
mode: ['create'], deps: ['cloud_type'],
|
||||
disabled: (state) => {
|
||||
if (state.cloud_type == 'public') return false;
|
||||
@ -498,9 +500,9 @@ class BigAnimalNetworkSchema extends BaseUISchema {
|
||||
depChange: (state, source)=> {
|
||||
if(source[0] == 'cloud_type') {
|
||||
if (state.cloud_type == 'public') {
|
||||
return {public_ip: obj.initValues.hostIP};
|
||||
return {biganimal_public_ip: obj.initValues.hostIP};
|
||||
} else {
|
||||
return {public_ip: ''};
|
||||
return {biganimal_public_ip: ''};
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user