Class: Clusters::Providers::Aws
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Clusters::Providers::Aws
- Includes:
- Concerns::ProviderStatus, Gitlab::Utils::StrongMemoize
- Defined in:
- app/models/clusters/providers/aws.rb
Constant Summary collapse
- DEFAULT_REGION =
'us-east-1'
Constants inherited from ApplicationRecord
Constants included from HasCheckConstraints
HasCheckConstraints::NOT_NULL_CHECK_PATTERN
Constants included from ResetOnColumnErrors
ResetOnColumnErrors::MAX_RESET_PERIOD
Instance Method Summary collapse
- #created_by_user ⇒ Object
- #has_rbac_enabled? ⇒ Boolean
- #knative_pre_installed? ⇒ Boolean
- #nullify_credentials ⇒ Object
Methods inherited from ApplicationRecord
===, cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, nullable_column?, pluck_primary_key, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, #to_ability_name, underscore, where_exists, where_not_exists, with_fast_read_statement_timeout, without_order
Methods included from ResetOnColumnErrors
#reset_on_union_error, #reset_on_unknown_attribute_error
Methods included from Gitlab::SensitiveSerializableHash
Instance Method Details
#created_by_user ⇒ Object
56 57 58 |
# File 'app/models/clusters/providers/aws.rb', line 56 def created_by_user cluster.user end |
#has_rbac_enabled? ⇒ Boolean
48 49 50 |
# File 'app/models/clusters/providers/aws.rb', line 48 def has_rbac_enabled? true end |
#knative_pre_installed? ⇒ Boolean
52 53 54 |
# File 'app/models/clusters/providers/aws.rb', line 52 def knative_pre_installed? false end |
#nullify_credentials ⇒ Object
40 41 42 43 44 45 46 |
# File 'app/models/clusters/providers/aws.rb', line 40 def nullify_credentials assign_attributes( access_key_id: nil, secret_access_key: nil, session_token: nil ) end |