2022-01-17 05:53:32 +00:00
< form class = "form-horizontal" style = "margin-top: 15px" >
2017-05-27 07:23:49 +00:00
< div class = "form-group" >
2021-02-12 01:27:02 +00:00
< div class = "col-sm-12 small text-muted" >
By default, secrets will be available under < code > /run/secrets/$SECRET_NAME< / code > in containers (Linux) or
< code > C:\ProgramData\Docker\secrets\$SECRET_NAME< / code > (Windows).< /div
>
2017-05-27 07:23:49 +00:00
< / div >
< div class = "form-group" >
2022-01-17 05:53:32 +00:00
< div class = "col-sm-12" style = "margin-top: 5px" >
2017-05-27 07:23:49 +00:00
< label class = "control-label text-left" > Secrets< / label >
2022-07-26 23:20:21 +00:00
< span class = "label label-default interactive" style = "margin-left: 10px" ng-click = "addSecret()" >
< pr-icon icon = "'plus'" mode = "'alt'" feather = "true" > < / pr-icon > add a secret
< / span >
2017-05-27 07:23:49 +00:00
< / div >
2021-12-17 12:22:50 +00:00
<!-- info message -->
2022-01-17 05:53:32 +00:00
< div class = "form-group" ng-show = "formValues.Secrets.$invalid" style = "margin-bottom: 0px" >
2022-07-25 23:04:01 +00:00
< div class = "col-sm-12 small" style = "padding-left: 35px; padding-top: 20px" >
< pr-icon icon = "'alert-triangle'" mode = "'warning'" feather = "true" > < / pr-icon > {{ formValues.Secrets.$error }}
2021-12-17 12:22:50 +00:00
< / div >
< / div >
2022-01-17 05:53:32 +00:00
< div class = "col-sm-12 form-inline" style = "margin-top: 10px" >
< div ng-repeat = "secret in formValues.Secrets track by $index" style = "margin-top: 4px" >
2017-05-27 07:23:49 +00:00
< div class = "input-group col-sm-4 input-group-sm" >
< span class = "input-group-addon" > secret< / span >
2021-12-17 12:22:50 +00:00
< select class = "form-control" ng-model = "secret.model" ng-change = "checkIfSecretDuplicated()" ng-options = "secret.Name for secret in availableSecrets | orderBy: 'Name'" >
2017-05-27 07:23:49 +00:00
< option value = "" selected = "selected" > Select a secret< / option >
< / select >
< / div >
2020-04-10 21:54:53 +00:00
< div class = "input-group col-sm-4 input-group-sm" ng-if = "applicationState.endpoint.apiVersion >= 1.3 && secret.overrideTarget" >
2017-11-20 13:44:23 +00:00
< span class = "input-group-addon" > target< / span >
2020-04-10 21:54:53 +00:00
< input class = "form-control" ng-model = "secret.target" placeholder = "/path/in/container" / >
2017-11-20 13:44:23 +00:00
< / div >
< div class = "input-group col-sm-3 input-group-sm" >
2020-04-10 21:54:53 +00:00
< div class = "btn-group btn-group-sm" ng-if = "applicationState.endpoint.apiVersion >= 1.3" >
2022-07-26 23:18:06 +00:00
< label class = "btn btn-light" ng-model = "secret.overrideTarget" uib-btn-radio = "false" > Default location< / label >
< label class = "btn btn-light" ng-model = "secret.overrideTarget" uib-btn-radio = "true" > Override< / label >
2017-11-20 13:44:23 +00:00
< / div >
2022-07-26 23:18:06 +00:00
< button class = "btn btn-sm btn-light" type = "button" ng-click = "removeSecret($index)" >
< pr-icon icon = "'trash'" feather = "true" class-name = "'icon-secondary icon-md'" > < / pr-icon >
2017-11-20 13:44:23 +00:00
< / button >
< / div >
2017-05-27 07:23:49 +00:00
< / div >
< / div >
< / div >
< / form >