Class: Google::Apis::ContainerV1beta1::ContainerdConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb

Overview

ContainerdConfig contains configuration to customize containerd.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContainerdConfig

Returns a new instance of ContainerdConfig.



3005
3006
3007
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3005

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#private_registry_access_configGoogle::Apis::ContainerV1beta1::PrivateRegistryAccessConfig

PrivateRegistryAccessConfig contains access configuration for private container registries. Corresponds to the JSON property privateRegistryAccessConfig



2991
2992
2993
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2991

def private_registry_access_config
  @private_registry_access_config
end

#registry_hostsArray<Google::Apis::ContainerV1beta1::RegistryHostConfig>

RegistryHostConfig configures containerd registry host configuration. Each registry_hosts represents a hosts.toml file. At most 25 registry_hosts are allowed. Corresponds to the JSON property registryHosts



2998
2999
3000
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2998

def registry_hosts
  @registry_hosts
end

#writable_cgroupsGoogle::Apis::ContainerV1beta1::WritableCgroups

Defines writable cgroups configuration. Corresponds to the JSON property writableCgroups



3003
3004
3005
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3003

def writable_cgroups
  @writable_cgroups
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3010
3011
3012
3013
3014
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3010

def update!(**args)
  @private_registry_access_config = args[:private_registry_access_config] if args.key?(:private_registry_access_config)
  @registry_hosts = args[:registry_hosts] if args.key?(:registry_hosts)
  @writable_cgroups = args[:writable_cgroups] if args.key?(:writable_cgroups)
end