mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
* fix(k8s/application): transform username to be dns compliant (#4595) * fix(k8s/application): transform username to be dns compliant for configurations and resource pools(#4595) * fix(k8s/application): update regex to replace all special characters (#4595) Co-authored-by: Simon Meng <simon.meng@portainer.io>
This commit is contained in:
parent
58bf76a58f
commit
342a0d6d22
4 changed files with 13 additions and 0 deletions
|
@ -27,6 +27,7 @@ import KubernetesServiceConverter from 'Kubernetes/converters/service';
|
|||
import KubernetesPersistentVolumeClaimConverter from 'Kubernetes/converters/persistentVolumeClaim';
|
||||
import PortainerError from 'Portainer/error';
|
||||
import { KubernetesIngressHelper } from 'Kubernetes/ingress/helper';
|
||||
import KubernetesCommonHelper from 'Kubernetes/helpers/commonHelper';
|
||||
|
||||
function _apiPortsToPublishedPorts(pList, pRefs) {
|
||||
const ports = _.map(pList, (item) => {
|
||||
|
@ -294,6 +295,8 @@ class KubernetesApplicationConverter {
|
|||
}
|
||||
|
||||
static applicationFormValuesToApplication(formValues) {
|
||||
formValues.ApplicationOwner = KubernetesCommonHelper.ownerToLabel(formValues.ApplicationOwner);
|
||||
|
||||
const claims = KubernetesPersistentVolumeClaimConverter.applicationFormValuesToVolumeClaims(formValues);
|
||||
const rwx = _.find(claims, (item) => _.includes(item.StorageClass.AccessModes, 'RWX')) !== undefined;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue