Documentation ¶
Index ¶
- func PlacementUpdateNeeded(names, newNames []string) bool
- func ReplicaSetOverrideUpdateNeeded(overrideSpec fedv1a1.FederatedReplicaSetOverrideSpec, result map[string]int64) bool
- type Adapter
- type FederatedDeploymentAdapter
- func (d *FederatedDeploymentAdapter) OverrideList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error)
- func (d *FederatedDeploymentAdapter) OverrideObject() pkgruntime.Object
- func (d *FederatedDeploymentAdapter) OverrideWatch(namespace string, options metav1.ListOptions) (watch.Interface, error)
- func (d *FederatedDeploymentAdapter) PlacementList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error)
- func (d *FederatedDeploymentAdapter) PlacementObject() pkgruntime.Object
- func (d *FederatedDeploymentAdapter) PlacementWatch(namespace string, options metav1.ListOptions) (watch.Interface, error)
- func (d *FederatedDeploymentAdapter) ReconcileOverride(fedClient fedclientset.Interface, qualifiedName util.QualifiedName, ...) error
- func (d *FederatedDeploymentAdapter) ReconcilePlacement(fedClient fedclientset.Interface, qualifiedName util.QualifiedName, ...) error
- func (d *FederatedDeploymentAdapter) TemplateList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error)
- func (d *FederatedDeploymentAdapter) TemplateObject() pkgruntime.Object
- func (d *FederatedDeploymentAdapter) TemplateWatch(namespace string, options metav1.ListOptions) (watch.Interface, error)
- type FederatedReplicaSetAdapter
- func (d *FederatedReplicaSetAdapter) OverrideList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error)
- func (d *FederatedReplicaSetAdapter) OverrideObject() pkgruntime.Object
- func (d *FederatedReplicaSetAdapter) OverrideWatch(namespace string, options metav1.ListOptions) (watch.Interface, error)
- func (d *FederatedReplicaSetAdapter) PlacementList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error)
- func (d *FederatedReplicaSetAdapter) PlacementObject() pkgruntime.Object
- func (d *FederatedReplicaSetAdapter) PlacementWatch(namespace string, options metav1.ListOptions) (watch.Interface, error)
- func (d *FederatedReplicaSetAdapter) ReconcileOverride(fedClient fedclientset.Interface, qualifiedName util.QualifiedName, ...) error
- func (d *FederatedReplicaSetAdapter) ReconcilePlacement(fedClient fedclientset.Interface, qualifiedName util.QualifiedName, ...) error
- func (d *FederatedReplicaSetAdapter) TemplateList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error)
- func (d *FederatedReplicaSetAdapter) TemplateObject() pkgruntime.Object
- func (d *FederatedReplicaSetAdapter) TemplateWatch(namespace string, options metav1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlacementUpdateNeeded ¶
These assume that there would be no duplicate clusternames
func ReplicaSetOverrideUpdateNeeded ¶
func ReplicaSetOverrideUpdateNeeded(overrideSpec fedv1a1.FederatedReplicaSetOverrideSpec, result map[string]int64) bool
This assumes that there would be no duplicate clusternames
Types ¶
type Adapter ¶
type Adapter interface { TemplateObject() pkgruntime.Object TemplateList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error) TemplateWatch(namespace string, options metav1.ListOptions) (watch.Interface, error) OverrideObject() pkgruntime.Object OverrideList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error) OverrideWatch(namespace string, options metav1.ListOptions) (watch.Interface, error) PlacementObject() pkgruntime.Object PlacementList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error) PlacementWatch(namespace string, options metav1.ListOptions) (watch.Interface, error) ReconcilePlacement(fedClient fedclientset.Interface, qualifiedName QualifiedName, newClusterNames []string) error ReconcileOverride(fedClient fedclientset.Interface, qualifiedName QualifiedName, result map[string]int64) error }
func NewFederatedDeploymentAdapter ¶
func NewFederatedDeploymentAdapter(fedClient fedclientset.Interface) Adapter
func NewFederatedReplicaSetAdapter ¶
func NewFederatedReplicaSetAdapter(fedClient fedclientset.Interface) Adapter
type FederatedDeploymentAdapter ¶
type FederatedDeploymentAdapter struct {
// contains filtered or unexported fields
}
func (*FederatedDeploymentAdapter) OverrideList ¶
func (d *FederatedDeploymentAdapter) OverrideList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error)
func (*FederatedDeploymentAdapter) OverrideObject ¶
func (d *FederatedDeploymentAdapter) OverrideObject() pkgruntime.Object
func (*FederatedDeploymentAdapter) OverrideWatch ¶
func (d *FederatedDeploymentAdapter) OverrideWatch(namespace string, options metav1.ListOptions) (watch.Interface, error)
func (*FederatedDeploymentAdapter) PlacementList ¶
func (d *FederatedDeploymentAdapter) PlacementList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error)
func (*FederatedDeploymentAdapter) PlacementObject ¶
func (d *FederatedDeploymentAdapter) PlacementObject() pkgruntime.Object
func (*FederatedDeploymentAdapter) PlacementWatch ¶
func (d *FederatedDeploymentAdapter) PlacementWatch(namespace string, options metav1.ListOptions) (watch.Interface, error)
func (*FederatedDeploymentAdapter) ReconcileOverride ¶
func (d *FederatedDeploymentAdapter) ReconcileOverride(fedClient fedclientset.Interface, qualifiedName util.QualifiedName, result map[string]int64) error
func (*FederatedDeploymentAdapter) ReconcilePlacement ¶
func (d *FederatedDeploymentAdapter) ReconcilePlacement(fedClient fedclientset.Interface, qualifiedName util.QualifiedName, newClusterNames []string) error
TODO: Below methods can also be made common among FederatedDeployment and FederatedReplicaset using reflect if really needed.
func (*FederatedDeploymentAdapter) TemplateList ¶
func (d *FederatedDeploymentAdapter) TemplateList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error)
func (*FederatedDeploymentAdapter) TemplateObject ¶
func (d *FederatedDeploymentAdapter) TemplateObject() pkgruntime.Object
func (*FederatedDeploymentAdapter) TemplateWatch ¶
func (d *FederatedDeploymentAdapter) TemplateWatch(namespace string, options metav1.ListOptions) (watch.Interface, error)
type FederatedReplicaSetAdapter ¶
type FederatedReplicaSetAdapter struct {
// contains filtered or unexported fields
}
func (*FederatedReplicaSetAdapter) OverrideList ¶
func (d *FederatedReplicaSetAdapter) OverrideList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error)
func (*FederatedReplicaSetAdapter) OverrideObject ¶
func (d *FederatedReplicaSetAdapter) OverrideObject() pkgruntime.Object
func (*FederatedReplicaSetAdapter) OverrideWatch ¶
func (d *FederatedReplicaSetAdapter) OverrideWatch(namespace string, options metav1.ListOptions) (watch.Interface, error)
func (*FederatedReplicaSetAdapter) PlacementList ¶
func (d *FederatedReplicaSetAdapter) PlacementList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error)
func (*FederatedReplicaSetAdapter) PlacementObject ¶
func (d *FederatedReplicaSetAdapter) PlacementObject() pkgruntime.Object
func (*FederatedReplicaSetAdapter) PlacementWatch ¶
func (d *FederatedReplicaSetAdapter) PlacementWatch(namespace string, options metav1.ListOptions) (watch.Interface, error)
func (*FederatedReplicaSetAdapter) ReconcileOverride ¶
func (d *FederatedReplicaSetAdapter) ReconcileOverride(fedClient fedclientset.Interface, qualifiedName util.QualifiedName, result map[string]int64) error
func (*FederatedReplicaSetAdapter) ReconcilePlacement ¶
func (d *FederatedReplicaSetAdapter) ReconcilePlacement(fedClient fedclientset.Interface, qualifiedName util.QualifiedName, newClusterNames []string) error
TODO: Below methods can also be made common among FederatedReplicaSet and FederatedDeployment using reflect if really needed.
func (*FederatedReplicaSetAdapter) TemplateList ¶
func (d *FederatedReplicaSetAdapter) TemplateList(namespace string, options metav1.ListOptions) (pkgruntime.Object, error)
func (*FederatedReplicaSetAdapter) TemplateObject ¶
func (d *FederatedReplicaSetAdapter) TemplateObject() pkgruntime.Object
func (*FederatedReplicaSetAdapter) TemplateWatch ¶
func (d *FederatedReplicaSetAdapter) TemplateWatch(namespace string, options metav1.ListOptions) (watch.Interface, error)
Click to show internal directories.
Click to hide internal directories.