Class PrivilegedAdmissionConfig.Builder (2.86.0)

public static final class PrivilegedAdmissionConfig.Builder extends GeneratedMessage.Builder<PrivilegedAdmissionConfig.Builder> implements PrivilegedAdmissionConfigOrBuilder

PrivilegedAdmissionConfig stores the list of authorized allowlist paths for the cluster.

Protobuf type google.container.v1beta1.PrivilegedAdmissionConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAllowlistPaths(Iterable<String> values)

public PrivilegedAdmissionConfig.Builder addAllAllowlistPaths(Iterable<String> values)

The customer allowlist Cloud Storage paths for the cluster. These paths are used with the --autopilot-privileged-admission flag to authorize privileged workloads in Autopilot clusters.

Paths can be GKE-owned, in the format gke://<partner_name>/<app_name>/<allowlist_path>, or customer-owned, in the format gs://<bucket_name>/<allowlist_path>.

Wildcards (*) are supported to authorize all allowlists under specific paths or directories. Example: gs://my-bucket/* will authorize all allowlists under the my-bucket bucket.

repeated string allowlist_paths = 1;

Parameter
Name Description
values Iterable<String>

The allowlistPaths to add.

Returns
Type Description
PrivilegedAdmissionConfig.Builder

This builder for chaining.

addAllowlistPaths(String value)

public PrivilegedAdmissionConfig.Builder addAllowlistPaths(String value)

The customer allowlist Cloud Storage paths for the cluster. These paths are used with the --autopilot-privileged-admission flag to authorize privileged workloads in Autopilot clusters.

Paths can be GKE-owned, in the format gke://<partner_name>/<app_name>/<allowlist_path>, or customer-owned, in the format gs://<bucket_name>/<allowlist_path>.

Wildcards (*) are supported to authorize all allowlists under specific paths or directories. Example: gs://my-bucket/* will authorize all allowlists under the my-bucket bucket.

repeated string allowlist_paths = 1;

Parameter
Name Description
value String

The allowlistPaths to add.

Returns
Type Description
PrivilegedAdmissionConfig.Builder

This builder for chaining.

addAllowlistPathsBytes(ByteString value)

public PrivilegedAdmissionConfig.Builder addAllowlistPathsBytes(ByteString value)

The customer allowlist Cloud Storage paths for the cluster. These paths are used with the --autopilot-privileged-admission flag to authorize privileged workloads in Autopilot clusters.

Paths can be GKE-owned, in the format gke://<partner_name>/<app_name>/<allowlist_path>, or customer-owned, in the format gs://<bucket_name>/<allowlist_path>.

Wildcards (*) are supported to authorize all allowlists under specific paths or directories. Example: gs://my-bucket/* will authorize all allowlists under the my-bucket bucket.

repeated string allowlist_paths = 1;

Parameter
Name Description
value ByteString

The bytes of the allowlistPaths to add.

Returns
Type Description
PrivilegedAdmissionConfig.Builder

This builder for chaining.

build()

public PrivilegedAdmissionConfig build()
Returns
Type Description
PrivilegedAdmissionConfig

buildPartial()

public PrivilegedAdmissionConfig buildPartial()
Returns
Type Description
PrivilegedAdmissionConfig

clear()

public PrivilegedAdmissionConfig.Builder clear()
Returns
Type Description
PrivilegedAdmissionConfig.Builder
Overrides

clearAllowlistPaths()

public PrivilegedAdmissionConfig.Builder clearAllowlistPaths()

The customer allowlist Cloud Storage paths for the cluster. These paths are used with the --autopilot-privileged-admission flag to authorize privileged workloads in Autopilot clusters.

Paths can be GKE-owned, in the format gke://<partner_name>/<app_name>/<allowlist_path>, or customer-owned, in the format gs://<bucket_name>/<allowlist_path>.

Wildcards (*) are supported to authorize all allowlists under specific paths or directories. Example: gs://my-bucket/* will authorize all allowlists under the my-bucket bucket.

repeated string allowlist_paths = 1;

Returns
Type Description
PrivilegedAdmissionConfig.Builder

This builder for chaining.

getAllowlistPaths(int index)

public String getAllowlistPaths(int index)

The customer allowlist Cloud Storage paths for the cluster. These paths are used with the --autopilot-privileged-admission flag to authorize privileged workloads in Autopilot clusters.

Paths can be GKE-owned, in the format gke://<partner_name>/<app_name>/<allowlist_path>, or customer-owned, in the format gs://<bucket_name>/<allowlist_path>.

Wildcards (*) are supported to authorize all allowlists under specific paths or directories. Example: gs://my-bucket/* will authorize all allowlists under the my-bucket bucket.

repeated string allowlist_paths = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowlistPaths at the given index.

getAllowlistPathsBytes(int index)

public ByteString getAllowlistPathsBytes(int index)

The customer allowlist Cloud Storage paths for the cluster. These paths are used with the --autopilot-privileged-admission flag to authorize privileged workloads in Autopilot clusters.

Paths can be GKE-owned, in the format gke://<partner_name>/<app_name>/<allowlist_path>, or customer-owned, in the format gs://<bucket_name>/<allowlist_path>.

Wildcards (*) are supported to authorize all allowlists under specific paths or directories. Example: gs://my-bucket/* will authorize all allowlists under the my-bucket bucket.

repeated string allowlist_paths = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowlistPaths at the given index.

getAllowlistPathsCount()

public int getAllowlistPathsCount()

The customer allowlist Cloud Storage paths for the cluster. These paths are used with the --autopilot-privileged-admission flag to authorize privileged workloads in Autopilot clusters.

Paths can be GKE-owned, in the format gke://<partner_name>/<app_name>/<allowlist_path>, or customer-owned, in the format gs://<bucket_name>/<allowlist_path>.

Wildcards (*) are supported to authorize all allowlists under specific paths or directories. Example: gs://my-bucket/* will authorize all allowlists under the my-bucket bucket.

repeated string allowlist_paths = 1;

Returns
Type Description
int

The count of allowlistPaths.

getAllowlistPathsList()

public ProtocolStringList getAllowlistPathsList()

The customer allowlist Cloud Storage paths for the cluster. These paths are used with the --autopilot-privileged-admission flag to authorize privileged workloads in Autopilot clusters.

Paths can be GKE-owned, in the format gke://<partner_name>/<app_name>/<allowlist_path>, or customer-owned, in the format gs://<bucket_name>/<allowlist_path>.

Wildcards (*) are supported to authorize all allowlists under specific paths or directories. Example: gs://my-bucket/* will authorize all allowlists under the my-bucket bucket.

repeated string allowlist_paths = 1;

Returns
Type Description
ProtocolStringList

A list containing the allowlistPaths.

getDefaultInstanceForType()

public PrivilegedAdmissionConfig getDefaultInstanceForType()
Returns
Type Description
PrivilegedAdmissionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrivilegedAdmissionConfig other)

public PrivilegedAdmissionConfig.Builder mergeFrom(PrivilegedAdmissionConfig other)
Parameter
Name Description
other PrivilegedAdmissionConfig
Returns
Type Description
PrivilegedAdmissionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrivilegedAdmissionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivilegedAdmissionConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PrivilegedAdmissionConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PrivilegedAdmissionConfig.Builder
Overrides

setAllowlistPaths(int index, String value)

public PrivilegedAdmissionConfig.Builder setAllowlistPaths(int index, String value)

The customer allowlist Cloud Storage paths for the cluster. These paths are used with the --autopilot-privileged-admission flag to authorize privileged workloads in Autopilot clusters.

Paths can be GKE-owned, in the format gke://<partner_name>/<app_name>/<allowlist_path>, or customer-owned, in the format gs://<bucket_name>/<allowlist_path>.

Wildcards (*) are supported to authorize all allowlists under specific paths or directories. Example: gs://my-bucket/* will authorize all allowlists under the my-bucket bucket.

repeated string allowlist_paths = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The allowlistPaths to set.

Returns
Type Description
PrivilegedAdmissionConfig.Builder

This builder for chaining.