Add ClusterOverrides to FederatedDeploymentOverrides
-
/*
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 (
@@ -46,6 +44,15 @@ type FederatedDeploymentOverride struct {
// FederatedDeploymentOverrideSpec defines the desired state of FederatedDeploymentOverride
type FederatedDeploymentOverrideSpec struct {
+ Overrides []FederatedDeploymentClusterOverride
+}
+
+// FederatedReplicaSetClusterOverride defines the overrides for a named cluster
+type FederatedDeploymentClusterOverride 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
+ Replicas *int32 `json:"replicas,omitempty"`
}
// FederatedDeploymentOverrideStatus defines the observed state of FederatedDeploymentOverride
