Reference documentation and code samples for the Google Cloud Container V1 Client class NodeTaint.
Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
See here for more information, including usage and the valid values.
Generated from protobuf message google.container.v1.NodeTaint
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ key |
string
Key for taint. |
↳ value |
string
Value for taint. |
↳ effect |
int
Effect for taint. |
getKey
Key for taint.
Generated from protobuf field string key = 1;
Returns | |
---|---|
Type | Description |
string |
setKey
Key for taint.
Generated from protobuf field string key = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getValue
Value for taint.
Generated from protobuf field string value = 2;
Returns | |
---|---|
Type | Description |
string |
setValue
Value for taint.
Generated from protobuf field string value = 2;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getEffect
Effect for taint.
Generated from protobuf field .google.container.v1.NodeTaint.Effect effect = 3;
Returns | |
---|---|
Type | Description |
int |
setEffect
Effect for taint.
Generated from protobuf field .google.container.v1.NodeTaint.Effect effect = 3;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |