Skip to content

Commit cc4475d

Browse files
feat(container): add support for SecretEnvironmentVariables (#1056)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 128eea3 commit cc4475d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

api/container/v1beta1/container_sdk.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,8 @@ type Container struct {
533533

534534
Port uint32 `json:"port"`
535535

536+
SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
537+
536538
Region scw.Region `json:"region"`
537539
}
538540

@@ -636,9 +638,17 @@ type Namespace struct {
636638

637639
Description *string `json:"description"`
638640

641+
SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
642+
639643
Region scw.Region `json:"region"`
640644
}
641645

646+
type Secret struct {
647+
Key string `json:"key"`
648+
649+
Value *string `json:"value"`
650+
}
651+
642652
type Token struct {
643653
Token string `json:"token"`
644654

@@ -757,6 +767,8 @@ type CreateNamespaceRequest struct {
757767
ProjectID string `json:"project_id"`
758768

759769
Description *string `json:"description"`
770+
771+
SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
760772
}
761773

762774
// CreateNamespace: create a new namespace
@@ -809,6 +821,8 @@ type UpdateNamespaceRequest struct {
809821
EnvironmentVariables *map[string]string `json:"environment_variables"`
810822

811823
Description *string `json:"description"`
824+
825+
SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
812826
}
813827

814828
// UpdateNamespace: update an existing namespace
@@ -1027,6 +1041,8 @@ type CreateContainerRequest struct {
10271041
Protocol ContainerProtocol `json:"protocol"`
10281042

10291043
Port *uint32 `json:"port"`
1044+
1045+
SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
10301046
}
10311047

10321048
// CreateContainer: create a new container
@@ -1100,6 +1116,8 @@ type UpdateContainerRequest struct {
11001116
Protocol ContainerProtocol `json:"protocol"`
11011117

11021118
Port *uint32 `json:"port"`
1119+
1120+
SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
11031121
}
11041122

11051123
// UpdateContainer: update an existing container

0 commit comments

Comments
 (0)