Settings:
export KUBERNETES_BRANCH="release-1.10"
export CLIENT_VERSION="0.1.0a1"
export PACKAGE_NAME="client"
24 lines
843 B
Go
24 lines
843 B
Go
/*
|
|
* Kubernetes
|
|
*
|
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
*
|
|
* API version: v1.10.0
|
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
|
*/
|
|
|
|
package client
|
|
|
|
// Affinity is a group of affinity scheduling rules.
|
|
type V1Affinity struct {
|
|
|
|
// Describes node affinity scheduling rules for the pod.
|
|
NodeAffinity *V1NodeAffinity `json:"nodeAffinity,omitempty"`
|
|
|
|
// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
|
|
PodAffinity *V1PodAffinity `json:"podAffinity,omitempty"`
|
|
|
|
// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
|
|
PodAntiAffinity *V1PodAntiAffinity `json:"podAntiAffinity,omitempty"`
|
|
}
|