Skip to content

Add K8s Namespace field to Environment [BE, DB]

What does this MR do and why?

This MR adds a new field to the environments settings - kubernetes_namespace and exposes it to GraphQl.

Screenshots or screen recordings

Please see the related frontend MR for the details and screenshots: !125191 (merged)

Migration output:

ci: == [advisory_lock_connection] object_id: 223780, pg_backend_pid: 33902
ci: == 20230701195315 AddKubernetesNamespaceColumnToEnvironments: migrating =======
ci: -- add_column(:environments, :kubernetes_namespace, :text)
ci:    -> 0.0028s
ci: == 20230701195315 AddKubernetesNamespaceColumnToEnvironments: migrated (0.0115s) 

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Review progress:

Related to #403618 (closed)

Edited by Shinya Maeda

Merge request reports