GetPrimaryUpdateStrategy get the cluster primary update strategy, defaulting to unsupervised
()
| 803 | // GetPrimaryUpdateStrategy get the cluster primary update strategy, |
| 804 | // defaulting to unsupervised |
| 805 | func (cluster *Cluster) GetPrimaryUpdateStrategy() PrimaryUpdateStrategy { |
| 806 | strategy := cluster.Spec.PrimaryUpdateStrategy |
| 807 | if strategy == "" { |
| 808 | return PrimaryUpdateStrategyUnsupervised |
| 809 | } |
| 810 | |
| 811 | return strategy |
| 812 | } |
| 813 | |
| 814 | // GetPrimaryUpdateMethod get the cluster primary update method, |
| 815 | // defaulting to restart |
no outgoing calls
no test coverage detected