Update replicaset override to allow just replica count
-
/*
Copyright 2018 The Kubernetes Authors.
@@ -15,7 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
-
package v1alpha1
import (
@@ -24,7 +22,6 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apiserver/pkg/endpoints/request"
- appsv1 "k8s.io/api/apps/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/validation/field"
@@ -50,10 +47,12 @@ type FederatedReplicaSetOverrideSpec struct {
Overrides []FederatedReplicaSetClusterOverride
}
-// FederatedSecretClusterOverride defines the overrides for a named cluster
+// FederatedReplicaSetClusterOverride defines the overrides for a named cluster
type FederatedReplicaSetClusterOverride struct {
+ // TODO(marun) Need to ensure that a cluster name only appears
+ // once. Why can't maps be used so this validation is automatic?
ClusterName string
- Override appsv1.ReplicaSet
+ Replicas *int32 `json:"replicas,omitempty"`
}
// FederatedReplicaSetOverrideStatus defines the observed state of FederatedReplicaSetOverride
