public static final class DescribeApplicationConfigResponseBody.InitContainersConfig.Builder extends Object
public DescribeApplicationConfigResponseBody.InitContainersConfig.Builder command(String command)
The command that is used to start the image. The command must be an existing executable object in the container. Sample statements:
command:
- echo
- abc
- >
- file0
In this example, the Command parameter is set to Command="echo", CommandArgs=["abc", ">", "file0"].
/bin/sh
public DescribeApplicationConfigResponseBody.InitContainersConfig.Builder commandArgs(String commandArgs)
The parameters of the image startup command. The CommandArgs parameter specifies the parameters that are required for the Command parameter. You can specify the name in one of the following formats:
["a","b"]
In the preceding example, the CommandArgs parameter is set to CommandArgs=["abc", ">", "file0"]. The data type of ["abc", ">", "file0"] must be an array of strings in the JSON format. This parameter is optional.
["a","b"]
public DescribeApplicationConfigResponseBody.InitContainersConfig.Builder configMapMountDesc(List<DescribeApplicationConfigResponseBody.InitContainersConfigConfigMapMountDesc> configMapMountDesc)
The information of ConfigMap.
public DescribeApplicationConfigResponseBody.InitContainersConfig.Builder emptyDirDesc(List<DescribeApplicationConfigResponseBody.InitContainersConfigEmptyDirDesc> emptyDirDesc)
public DescribeApplicationConfigResponseBody.InitContainersConfig.Builder envs(String envs)
The environment variables. You can configure custom environment variables or reference a ConfigMap. If you want to reference a ConfigMap, you must first create a ConfigMap. For more information, see CreateConfigMap. Take note of the following rules:
Customize
Reference ConfigMap
sae-sys-configmap-all-<ConfigMap name>. Example: sae-sys-configmap-all-test1.configMapRef.[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}]
public DescribeApplicationConfigResponseBody.InitContainersConfig.Builder imageUrl(String imageUrl)
The image URL of the initialized container.
example:registry.cn-shenzhen.aliyuncs.com/sae-serverless-demo/sae-demo:microservice-java-provider-v1.0
public DescribeApplicationConfigResponseBody.InitContainersConfig.Builder name(String name)
The name of the initialized container.
example:init-container
public DescribeApplicationConfigResponseBody.InitContainersConfig.Builder secretMountDesc(List<DescribeApplicationConfigResponseBody.SecretMountDesc> secretMountDesc)
public DescribeApplicationConfigResponseBody.InitContainersConfig build()
Copyright © 2026. All rights reserved.