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.



2980
2981
2982
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2980

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



2966
2967
2968
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2966

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



2973
2974
2975
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2973

def registry_hosts
  @registry_hosts
end

#writable_cgroupsGoogle::Apis::ContainerV1beta1::WritableCgroups

Defines writable cgroups configuration. Corresponds to the JSON property writableCgroups



2978
2979
2980
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2978

def writable_cgroups
  @writable_cgroups
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2985
2986
2987
2988
2989
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2985

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