diff --git a/src/components/dockerRegistry/Docker.tsx b/src/components/dockerRegistry/Docker.tsx index 7dea13afde..edafc3faf0 100644 --- a/src/components/dockerRegistry/Docker.tsx +++ b/src/components/dockerRegistry/Docker.tsx @@ -234,6 +234,7 @@ const CollapsedList = ({ awsAccessKeyId = '', awsSecretAccessKey = '', awsRegion = '', + assumeRoleArn = '', isDefault = false, active = true, username = '', @@ -319,6 +320,7 @@ const CollapsedList = ({ awsAccessKeyId, awsSecretAccessKey, awsRegion, + assumeRoleArn, isDefault, active, username, @@ -353,6 +355,7 @@ const DockerForm = ({ awsAccessKeyId, awsSecretAccessKey, awsRegion, + assumeRoleArn, isDefault, active, username, @@ -431,6 +434,7 @@ const DockerForm = ({ value: id && !awsSecretAccessKey ? DEFAULT_SECRET_PLACEHOLDER : awsSecretAccessKey, error: '', }, + assumeRoleArn: { value: assumeRoleArn, error: '' }, registryUrl: { value: registryUrl, error: '' }, username: { value: username, error: '' }, password: { @@ -629,6 +633,7 @@ const DockerForm = ({ password: { value: selectedRegistry.password.defaultValue, error: '' }, awsAccessKeyId: { value: '', error: '' }, awsSecretAccessKey: { value: '', error: '' }, + assumeRoleArn: { value: '', error: '' }, })) } @@ -788,6 +793,7 @@ const DockerForm = ({ awsAccessKeyId: customState.awsAccessKeyId.value?.trim(), awsSecretAccessKey: parsePassword(customState.awsSecretAccessKey.value), awsRegion, + assumeRoleArn: customState.assumeRoleArn.value?.trim(), } : {}), ...((selectedDockerRegistryType.value === RegistryType.ARTIFACT_REGISTRY && @@ -1619,6 +1625,16 @@ const DockerForm = ({ )} +
+ +
) } diff --git a/src/config/constants.ts b/src/config/constants.ts index 354bc1e9c4..4ad3402cfe 100644 --- a/src/config/constants.ts +++ b/src/config/constants.ts @@ -450,6 +450,7 @@ export interface RegistryPayloadType { awsAccessKeyId?: string awsSecretAccessKey?: string awsRegion?: string + assumeRoleArn?: string username?: string password?: string connection?: string