Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: vitaliy-guliy <vgulyy@redhat.com>
  • Loading branch information
vitaliy-guliy committed Nov 28, 2024
1 parent 6efdd26 commit 3939859
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions code/extensions/che-api/src/impl/k8s-service-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,11 @@ export class K8SServiceImpl implements K8SService {
'Do you want to fix this and add the kubernetes service host to the no_proxy environment variable?', 'Add', 'Cancel');

if ('Add' === action) {
if (env.NO_PROXY && env.no_proxy) {
env.NO_PROXY += ',' + k8sHost;
env.no_proxy += ',' + k8sHost;
console.log('Kubernetes Service Host has been added to env.NO_PROXY and env.no_proxy environment variables');
} else if (env.NO_PROXY) {
if (env.NO_PROXY) {
env.NO_PROXY += ',' + k8sHost;
console.log('Kubernetes Service Host has been added to env.NO_PROXY environment variable');
} else if (env.no_proxy) {
}
if (env.no_proxy) {
env.no_proxy += ',' + k8sHost;
console.log('Kubernetes Service Host has been added to env.no_proxy environment variable');
}
Expand Down

0 comments on commit 3939859

Please sign in to comment.