Skip to content

Commit

Permalink
feat(container): add support for SecretEnvironmentVariables (#1056)
Browse files Browse the repository at this point in the history
Co-authored-by: Rémy Léone <rleone@scaleway.com>
  • Loading branch information
scaleway-bot and remyleone authored Feb 8, 2022
1 parent 128eea3 commit cc4475d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions api/container/v1beta1/container_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ type Container struct {

Port uint32 `json:"port"`

SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`

Region scw.Region `json:"region"`
}

Expand Down Expand Up @@ -636,9 +638,17 @@ type Namespace struct {

Description *string `json:"description"`

SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`

Region scw.Region `json:"region"`
}

type Secret struct {
Key string `json:"key"`

Value *string `json:"value"`
}

type Token struct {
Token string `json:"token"`

Expand Down Expand Up @@ -757,6 +767,8 @@ type CreateNamespaceRequest struct {
ProjectID string `json:"project_id"`

Description *string `json:"description"`

SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
}

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

Description *string `json:"description"`

SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
}

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

Port *uint32 `json:"port"`

SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
}

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

Port *uint32 `json:"port"`

SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
}

// UpdateContainer: update an existing container
Expand Down

0 comments on commit cc4475d

Please sign in to comment.