Commit 982c2b83 authored by Shinya Maeda's avatar Shinya Maeda

Fix static anlysys. Added safe_model_attributes.

parent f4f9ee94
......@@ -48,7 +48,10 @@ module Gcp
validates :gcp_cluster_zone, presence: true
validates :gcp_cluster_size, presence: true,
numericality: { only_integer: true, greater_than: 0 }
numericality: {
only_integer: true,
greater_than: 0
}
validates :project_namespace,
allow_blank: true,
......
......@@ -53,7 +53,7 @@ project_tree:
- :auto_devops
- :triggers
- :pipeline_schedules
- :clusters
- :cluster
- :services
- :hooks
- protected_branches:
......
......@@ -8,6 +8,7 @@ module Gitlab
triggers: 'Ci::Trigger',
pipeline_schedules: 'Ci::PipelineSchedule',
builds: 'Ci::Build',
cluster: 'Gcp::Cluster',
clusters: 'Gcp::Cluster',
hooks: 'ProjectHook',
merge_access_levels: 'ProtectedBranch::MergeAccessLevel',
......
......@@ -310,6 +310,32 @@ Ci::PipelineSchedule:
- deleted_at
- created_at
- updated_at
Gcp::Cluster:
- id
- project_id
- user_id
- service_id
- enabled
- status
- status_reason
- project_namespace
- endpoint
- ca_cert
- encrypted_kubernetes_token
- encrypted_kubernetes_token_iv
- username
- encrypted_password
- encrypted_password_iv
- gcp_project_id
- gcp_cluster_zone
- gcp_cluster_name
- gcp_cluster_size
- gcp_machine_type
- gcp_operation_id
- encrypted_gcp_token
- encrypted_gcp_token_iv
- created_at
- updated_at
DeployKey:
- id
- user_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment