Class: Clusters::Providers::Aws
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Clusters::Providers::Aws
- Includes:
- Concerns::ProviderStatus, Gitlab::EncryptedAttribute, 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, current_transaction, declarative_enum, default_select_columns, delete_all_returning, #deleted_from_database?, id_in, id_not_in, iid_in, nullable_column?, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, sharding_keys, #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
57 58 59 |
# File 'app/models/clusters/providers/aws.rb', line 57 def created_by_user cluster.user end |
#has_rbac_enabled? ⇒ Boolean
49 50 51 |
# File 'app/models/clusters/providers/aws.rb', line 49 def has_rbac_enabled? true end |
#knative_pre_installed? ⇒ Boolean
53 54 55 |
# File 'app/models/clusters/providers/aws.rb', line 53 def knative_pre_installed? false end |
#nullify_credentials ⇒ Object
41 42 43 44 45 46 47 |
# File 'app/models/clusters/providers/aws.rb', line 41 def nullify_credentials assign_attributes( access_key_id: nil, secret_access_key: nil, session_token: nil ) end |