Class: Clusters::Providers::Aws

Inherits:
ApplicationRecord show all
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

ApplicationRecord::MAX_PLUCK

Constants included from ResetOnUnionError

ResetOnUnionError::MAX_RESET_PERIOD

Instance Method Summary collapse

Methods inherited from ApplicationRecord

cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, 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 SensitiveSerializableHash

#serializable_hash

Instance Method Details

#created_by_userObject



56
57
58
# File 'app/models/clusters/providers/aws.rb', line 56

def created_by_user
  cluster.user
end

#has_rbac_enabled?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'app/models/clusters/providers/aws.rb', line 48

def has_rbac_enabled?
  true
end

#knative_pre_installed?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'app/models/clusters/providers/aws.rb', line 52

def knative_pre_installed?
  false
end

#nullify_credentialsObject



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