Google Kubernetes Engine v1 API - Class LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript (3.38.0)

public sealed class LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript : IMessage<LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript>, IEquatable<LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript>, IDeepCloneable<LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Kubernetes Engine v1 API class LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript.

InitScript provide a simply bash script to be executed on the node.

Inheritance

object > LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript

Namespace

Google.Cloud.Container.V1

Assembly

Google.Cloud.Container.V1.dll

Constructors

InitScript()

public InitScript()

InitScript(InitScript)

public InitScript(LinuxNodeConfig.Types.CustomNodeInit.Types.InitScript other)
Parameter
Name Description
other LinuxNodeConfigTypesCustomNodeInitTypesInitScript

Properties

Args

public RepeatedField<string> Args { get; }

Optional. The optional arguments line to be passed to the init script.

Property Value
Type Description
RepeatedFieldstring

GcpSecretManagerSecretUri

public string GcpSecretManagerSecretUri { get; set; }

The resource name of the secret manager secret hosting the init script. Both global and regional secrets are supported with format below: Global secret: projects/{project}/secrets/{secret}/versions/{version} Regional secret: projects/{project}/locations/{location}/secrets/{secret}/versions/{version} Example: projects/1234567890/secrets/script_1/versions/1. Accept version number only, not support version alias. User can't configure both gcp_secret_manager_secret_uri and gcs_uri.

Property Value
Type Description
string

GcsGeneration

public long GcsGeneration { get; set; }

The generation of the init script stored in Gloud Storage. This is the required field to identify the version of the init script. User can get the genetaion from gcloud storage objects describe gs://BUCKET_NAME/OBJECT_NAME --format="value(generation)" or from the "Version history" tab of the object in the Cloud Console UI.

Property Value
Type Description
long

GcsUri

public string GcsUri { get; set; }

The Cloud Storage URI for storing the init script. Format: gs://BUCKET_NAME/OBJECT_NAME The service account on the node pool must have read access to the object. User can't configure both gcs_uri and gcp_secret_manager_secret_uri.

Property Value
Type Description
string