Fix remaining domainname -> hostname rebranding
This commit is contained in:
parent
6aa0645fa7
commit
0a62588be7
4 changed files with 8 additions and 5 deletions
|
@ -383,7 +383,7 @@ export default {
|
||||||
:status-reason="applications.knative.statusReason"
|
:status-reason="applications.knative.statusReason"
|
||||||
:request-status="applications.knative.requestStatus"
|
:request-status="applications.knative.requestStatus"
|
||||||
:request-reason="applications.knative.requestReason"
|
:request-reason="applications.knative.requestReason"
|
||||||
:install-application-request-params="{ hostname: applications.knative.domainname}"
|
:install-application-request-params="{ hostname: applications.knative.hostname}"
|
||||||
:disabled="!helmInstalled"
|
:disabled="!helmInstalled"
|
||||||
class="hide-bottom-border rounded-bottom"
|
class="hide-bottom-border rounded-bottom"
|
||||||
title-link="https://github.com/knative/docs"
|
title-link="https://github.com/knative/docs"
|
||||||
|
@ -405,7 +405,7 @@ export default {
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
id="knative-domainname"
|
id="knative-domainname"
|
||||||
v-model="applications.knative.domainname"
|
v-model="applications.knative.hostname"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control js-domainname"
|
class="form-control js-domainname"
|
||||||
readonly
|
readonly
|
||||||
|
@ -419,7 +419,7 @@ export default {
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
id="knative-domainname"
|
id="knative-domainname"
|
||||||
v-model="applications.knative.domainname"
|
v-model="applications.knative.hostname"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control js-domainname"
|
class="form-control js-domainname"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -16,3 +16,4 @@ export const REQUEST_SUCCESS = 'request-success';
|
||||||
export const REQUEST_FAILURE = 'request-failure';
|
export const REQUEST_FAILURE = 'request-failure';
|
||||||
export const INGRESS = 'ingress';
|
export const INGRESS = 'ingress';
|
||||||
export const JUPYTER = 'jupyter';
|
export const JUPYTER = 'jupyter';
|
||||||
|
export const KNATIVE = 'knative';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { s__ } from '../../locale';
|
import { s__ } from '../../locale';
|
||||||
import { INGRESS, JUPYTER } from '../constants';
|
import { INGRESS, JUPYTER, KNATIVE } from '../constants';
|
||||||
|
|
||||||
export default class ClusterStore {
|
export default class ClusterStore {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -105,6 +105,8 @@ export default class ClusterStore {
|
||||||
(this.state.applications.ingress.externalIp
|
(this.state.applications.ingress.externalIp
|
||||||
? `jupyter.${this.state.applications.ingress.externalIp}.nip.io`
|
? `jupyter.${this.state.applications.ingress.externalIp}.nip.io`
|
||||||
: '');
|
: '');
|
||||||
|
} else if (appId === KNATIVE) {
|
||||||
|
this.state.applications.knative.hostname = serverAppEntry.hostname ? serverAppEntry.hostname : '';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@ describe('Applications', () => {
|
||||||
runner: { title: 'GitLab Runner' },
|
runner: { title: 'GitLab Runner' },
|
||||||
prometheus: { title: 'Prometheus' },
|
prometheus: { title: 'Prometheus' },
|
||||||
jupyter: { title: 'JupyterHub', hostname: '' },
|
jupyter: { title: 'JupyterHub', hostname: '' },
|
||||||
knative: { title: 'Knative', domainname: '' },
|
knative: { title: 'Knative', hostname: '' },
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue