Documentation ¶
Index ¶
- Constants
- func GetMaxSurgeOrDefault(rollout *v1alpha1.Rollout) *intstr.IntOrString
- func GetMaxUnavailableOrDefault(rollout *v1alpha1.Rollout) *intstr.IntOrString
- func GetProgressDeadlineSecondsOrDefault(rollout *v1alpha1.Rollout) int32
- func GetReplicasOrDefault(replicas *int32) int32
- func GetRevisionHistoryLimitOrDefault(rollout *v1alpha1.Rollout) int32
- func GetStringOrDefault(value, defaultValue string) string
Constants ¶
View Source
const ( // DefaultReplicas default number of replicas for a rollout if the .Spec.Replicas is nil DefaultReplicas = int32(1) // DefaultRevisionHistoryLimit default number of revisions to keep if .Spec.RevisionHistoryLimit is nil DefaultRevisionHistoryLimit = int32(10) // DefaultMaxSurge default number for the max number of additional pods that can be brought up during a rollout DefaultMaxSurge = "1" DefaultMaxUnavailable = "0" // DefaultProgressDeadlineSeconds default number of seconds for the rollout to be making progress DefaultProgressDeadlineSeconds = int32(600) )
Variables ¶
This section is empty.
Functions ¶
func GetMaxSurgeOrDefault ¶
func GetMaxSurgeOrDefault(rollout *v1alpha1.Rollout) *intstr.IntOrString
func GetMaxUnavailableOrDefault ¶
func GetMaxUnavailableOrDefault(rollout *v1alpha1.Rollout) *intstr.IntOrString
func GetReplicasOrDefault ¶
GetReplicasOrDefault returns the deferenced number of replicas or the default number
func GetRevisionHistoryLimitOrDefault ¶
GetRevisionHistoryLimitOrDefault returns the specified number of replicas in a rollout or the default number
func GetStringOrDefault ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.