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 ...@@ -48,7 +48,10 @@ module Gcp
validates :gcp_cluster_zone, presence: true validates :gcp_cluster_zone, presence: true
validates :gcp_cluster_size, 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, validates :project_namespace,
allow_blank: true, allow_blank: true,
......
...@@ -53,7 +53,7 @@ project_tree: ...@@ -53,7 +53,7 @@ project_tree:
- :auto_devops - :auto_devops
- :triggers - :triggers
- :pipeline_schedules - :pipeline_schedules
- :clusters - :cluster
- :services - :services
- :hooks - :hooks
- protected_branches: - protected_branches:
......
...@@ -8,6 +8,7 @@ module Gitlab ...@@ -8,6 +8,7 @@ module Gitlab
triggers: 'Ci::Trigger', triggers: 'Ci::Trigger',
pipeline_schedules: 'Ci::PipelineSchedule', pipeline_schedules: 'Ci::PipelineSchedule',
builds: 'Ci::Build', builds: 'Ci::Build',
cluster: 'Gcp::Cluster',
clusters: 'Gcp::Cluster', clusters: 'Gcp::Cluster',
hooks: 'ProjectHook', hooks: 'ProjectHook',
merge_access_levels: 'ProtectedBranch::MergeAccessLevel', merge_access_levels: 'ProtectedBranch::MergeAccessLevel',
......
...@@ -310,6 +310,32 @@ Ci::PipelineSchedule: ...@@ -310,6 +310,32 @@ Ci::PipelineSchedule:
- deleted_at - deleted_at
- created_at - created_at
- updated_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: DeployKey:
- id - id
- user_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