func SupportedJujuWorkloadSeries() []string {
	var result []string
	// Ensure that ubuntu series are first!
	result = append(result, SupportedJujuControllerSeries()...)

	// Then perform the surgery on the non ubuntu series.
	seriesVersionsMutex.Lock()
	defer seriesVersionsMutex.Unlock()
	updateSeriesVersionsOnce()

	var series []string
	for s, version := range nonUbuntuSeries {
		if !version.Supported {
			continue
		}
		series = append(series, s)
	}
	sort.Strings(series)
	return append(result, series...)
}
// SupportedJujuWorkloadSeries returns a slice of juju supported series that
// target a workload (deploying a charm).
//
// The series are sorted in ubuntu release version, anything that isn't
// ubuntu release is then sorted by name.
//   - focal (20.04)
//   - bionic (18.04)
//   - xenial (16.04)
//   - centos7
//   - centos8
//   - genericlinux
//   - kubernetes
//   - opensuseleap
//   - win10
//   - win2008r2
//
// Anything not supported is left out.
SupportedJujuWorkloadSeries returns a slice of juju supported series that
target a workload (deploying a charm).

The series are sorted in ubuntu release version, anything that isn't
ubuntu release is then sorted by name.

Anything not supported is left out.
// SupportedJujuWorkloadSeries returns a slice of juju supported series that // target a workload ( deploying a charm ) . // // The series are sorted in ubuntu release version anything that isn ' t // ubuntu release is then sorted by name . // - focal ( 20 . 04 ) // - bionic ( 18 . 04 ) // - xenial ( 16 . 04 ) // - centos7 // - centos8 // - genericlinux // - kubernetes // - opensuseleap // - win10 // - win2008r2 // // Anything not supported is left out .
func SupportedJujuWorkloadSeries() []string {
	var result []string
	result = append(result, SupportedJujuControllerSeries()...)
	seriesVersionsMutex.Lock()
	defer seriesVersionsMutex.Unlock()
	updateSeriesVersionsOnce()
	var series []string
	for s, version := range nonUbuntuSeries {
		if !version.Supported {
			continue
		}
		series = append(series, s)
	}
	sort.Strings(series)
	return append(result, series...)
}
func SupportedJujuWorkloadSeries ( ) [ ] string { var result [ ] string result = append ( result , SupportedJujuControllerSeries ( ) ... ) seriesVersionsMutex . Lock ( ) defer seriesVersionsMutex . Unlock ( ) updateSeriesVersionsOnce ( ) var series [ ] string for s , version := range nonUbuntuSeries { if ! version . Supported { continue } series = append ( series , s ) } sort . Strings ( series ) return append ( result , series ... ) }
SupportedJujuWorkloadSeries returns a slice of juju supported series that
target a workload (deploying a charm).
SupportedJujuWorkloadSeries returns a slice of juju supported series that target a workload ( deploying a charm ) .
// Ensure that ubuntu series are first! // Then perform the surgery on the non ubuntu series.