// newClusterServicePlans returns new serviceplans.
newClusterServicePlans returns new serviceplans.
// newClusterServicePlans returns new serviceplans .
func newClusterServicePlans(count uint, useDifferentClasses bool) []*servicecatalog.ClusterServicePlan {
	classname := "test-serviceclass"
	sp1 := &servicecatalog.ClusterServicePlan{
		ObjectMeta: metav1.ObjectMeta{Name: "bar-id"},
		Spec: servicecatalog.ClusterServicePlanSpec{
			CommonServicePlanSpec: servicecatalog.CommonServicePlanSpec{
				ExternalName: "bar",
				ExternalID:   "12345",
			},
			ClusterServiceClassRef: servicecatalog.ClusterObjectReference{
				Name: classname,
			},
		},
	}
	if useDifferentClasses {
		classname = "different-serviceclass"
	}
	sp2 := &servicecatalog.ClusterServicePlan{
		ObjectMeta: metav1.ObjectMeta{Name: "baz-id"},
		Spec: servicecatalog.ClusterServicePlanSpec{
			CommonServicePlanSpec: servicecatalog.CommonServicePlanSpec{
				ExternalName: "baz",
				ExternalID:   "23456",
			},
			ClusterServiceClassRef: servicecatalog.ClusterObjectReference{
				Name: classname,
			},
		},
	}
	if 0 == count {
		return []*servicecatalog.ClusterServicePlan{}
	}
	if 1 == count {
		return []*servicecatalog.ClusterServicePlan{sp1}
	}
	if 2 == count {
		return []*servicecatalog.ClusterServicePlan{sp1, sp2}
	}
	return []*servicecatalog.ClusterServicePlan{}
}
func newClusterServicePlans ( count uint , useDifferentClasses bool ) [ ] * servicecatalog . ClusterServicePlan { classname := " " sp1 := & servicecatalog . ClusterServicePlan { ObjectMeta : metav1 . ObjectMeta { Name : " " } , Spec : servicecatalog . ClusterServicePlanSpec { CommonServicePlanSpec : servicecatalog . CommonServicePlanSpec { ExternalName : " " , ExternalID : " " , } , ClusterServiceClassRef : servicecatalog . ClusterObjectReference { Name : classname , } , } , } if useDifferentClasses { classname = " " } sp2 := & servicecatalog . ClusterServicePlan { ObjectMeta : metav1 . ObjectMeta { Name : " " } , Spec : servicecatalog . ClusterServicePlanSpec { CommonServicePlanSpec : servicecatalog . CommonServicePlanSpec { ExternalName : " " , ExternalID : " " , } , ClusterServiceClassRef : servicecatalog . ClusterObjectReference { Name : classname , } , } , } if 0 == count { return [ ] * servicecatalog . ClusterServicePlan { } } if 1 == count { return [ ] * servicecatalog . ClusterServicePlan { sp1 } } if 2 == count { return [ ] * servicecatalog . ClusterServicePlan { sp1 , sp2 } } return [ ] * servicecatalog . ClusterServicePlan { } }
newClusterServicePlans returns new serviceplans.
newClusterServicePlans returns new serviceplans .