File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
src/shared/components/Deployment Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -566,6 +566,8 @@ daemon-sets:
566566 toleration-seconds : Seconds
567567deployments :
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
Original file line number Diff line number Diff line change 11import jp from 'jsonpath' ;
22import { 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
59import { 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"
You can’t perform that action at this time.
0 commit comments