Skip to content

Commit 695b15c

Browse files
authored
feat: Add missing option for deployment create/edit view
1 parent 313611f commit 695b15c

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

public/i18n/en.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,8 @@ daemon-sets:
566566
toleration-seconds: Seconds
567567
deployments:
568568
create-modal:
569+
args: Args
570+
command: Command
569571
add-container: Add Container
570572
container-header: Container {{name}}
571573
containers: Containers
@@ -579,6 +581,12 @@ deployments:
579581
docker-image: Docker Image
580582
docker-image-placeholder: Enter the Docker image tag, for example, bitnami/nginx
581583
image-pull-secret: Image Pull Secret
584+
placeholders:
585+
args: Arguments to the ENTRYPOINT
586+
command: Command to run in a container
587+
tooltips:
588+
args: Docker image CMD is used if arguments are not provided. Provide either args or command.
589+
command: The Docker image's ENTRYPOINT is used if this is not provided. Provide either args or command.
582590
description: <0>Deployment</0> is a Kubernetes object that represents a replicated application running on your cluster.
583591
headers:
584592
images: Images

src/shared/components/Deployment/Containers.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import jp from 'jsonpath';
22
import { useTranslation } from 'react-i18next';
3-
import { K8sNameField, RuntimeResources } from 'shared/ResourceForm/fields';
3+
import {
4+
K8sNameField,
5+
RuntimeResources,
6+
TextArrayInput,
7+
} from 'shared/ResourceForm/fields';
48

59
import { Button, MessageStrip } from '@ui5/webcomponents-react';
610

@@ -40,6 +44,18 @@ function SingleContainerSection({ container, setContainer }) {
4044
placeholder={t('deployments.create-modal.docker-image-placeholder')}
4145
tooltipContent={dockerImgDesc}
4246
/>
47+
<TextArrayInput
48+
propertyPath="$.command"
49+
title={t('deployments.create-modal.command')}
50+
placeholder={t('deployments.create-modal.placeholders.command')}
51+
tooltipContent={t('deployments.create-modal.tooltips.command')}
52+
/>
53+
<TextArrayInput
54+
propertyPath="$.args"
55+
title={t('deployments.create-modal.args')}
56+
placeholder={t('deployments.create-modal.placeholders.args')}
57+
tooltipContent={t('deployments.create-modal.tooltips.args')}
58+
/>
4359
<RuntimeResources
4460
title={t('deployments.create-modal.runtime-profile')}
4561
propertyPath="$.resources"

0 commit comments

Comments
 (0)