observedSummaries returns the raw container.Summary list for a service, needed by nextContainerNumber which expects []container.Summary.
(serviceName string)
| 831 | // observedSummaries returns the raw container.Summary list for a service, |
| 832 | // needed by nextContainerNumber which expects []container.Summary. |
| 833 | func (r *reconciler) observedSummaries(serviceName string) []container.Summary { |
| 834 | ocs := r.observed.Containers[serviceName] |
| 835 | result := make([]container.Summary, len(ocs)) |
| 836 | for i, oc := range ocs { |
| 837 | result[i] = oc.Summary |
| 838 | } |
| 839 | return result |
| 840 | } |
| 841 | |
| 842 | // sortedKeys returns the keys of a map sorted alphabetically. |
| 843 | // This ensures deterministic iteration order for reproducible plan output in tests. |