struct
Kubernetes::WorkloadSpec
- Kubernetes::WorkloadSpec
- Struct
- Value
- Object
Overview
WorkloadSpec defines the desired state of a Workload.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_scheduling_v1alpha1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : ::JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#controller_ref : TypedLocalObjectReference | Nil
ControllerRef is an optional reference to the controlling object, such as a Deployment or Job.
-
#controller_ref=(controller_ref : TypedLocalObjectReference | Nil)
ControllerRef is an optional reference to the controlling object, such as a Deployment or Job.
-
#pod_groups : Array(PodGroup) | Nil
PodGroups is the list of pod groups that make up the Workload.
-
#pod_groups=(pod_groups : Array(PodGroup) | Nil)
PodGroups is the list of pod groups that make up the Workload.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
ControllerRef is an optional reference to the controlling object, such as a Deployment or Job. This field is intended for use by tools like CLIs to provide a link back to the original workload definition. When set, it cannot be changed.
ControllerRef is an optional reference to the controlling object, such as a Deployment or Job. This field is intended for use by tools like CLIs to provide a link back to the original workload definition. When set, it cannot be changed.
PodGroups is the list of pod groups that make up the Workload. The maximum number of pod groups is 8. This field is immutable.