Add Overrides field to FederatedConfigMapOverride
-
/*
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 FederatedConfigMapOverride struct {
// FederatedConfigMapOverrideSpec defines the desired state of FederatedConfigMapOverride
type FederatedConfigMapOverrideSpec struct {
+ Overrides []FederatedSecretClusterOverride `json:"overrides,omitempty"`
+}
+
+// FederatedConfigMapClusterOverride defines the overrides for a named cluster
+type FederatedConfigMapClusterOverride 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 `json:"clustername,omitempty"`
+ Data map[string]string `json:"data,omitempty"`
}
// FederatedConfigMapOverrideStatus defines the observed state of FederatedConfigMapOverride
