Documentation
¶
Overview ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func Convert(ctx context.Context, client client.Client) (*operatorv1.Installation, error)
- func ErrIncompatibleAnnotation(annotations map[string]string, component string) error
- func NeedsConversion(ctx context.Context, client client.Client) (bool, error)
- type CheckedDaemonSet
- type ErrIncompatibleCluster
Constants ¶
const ( ComponentCalicoNode = "daemonset/calico-node" ComponentKubeControllers = "deployment/calico-kube-controllers" ComponentTypha = "deployment/calico-typha" ComponentCNIConfig = "cni-config" ComponentIPPools = "ippools" )
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(ctx context.Context, client client.Client) (*operatorv1.Installation, error)
Convert updates an Installation resource based on an existing Calico install (i.e. one that is not managed by operator). If the existing installation cannot be represented by an Installation resource, an ErrIncompatibleCluster is returned.
Types ¶
type CheckedDaemonSet ¶
CheckedDaemonSet keeps track of which fields have been 'checked' by handlers. This is done so that at the end of the migration, any 'unchecked' fields can be reported and errored.
type ErrIncompatibleCluster ¶
type ErrIncompatibleCluster struct {
// contains filtered or unexported fields
}
ErrIncompatibleCluster indicates that a config option was detected in the existing install which Operator does not support.
func ErrMissingHostPathVolume ¶
func ErrMissingHostPathVolume(component, volume, hostPath string) ErrIncompatibleCluster
func (ErrIncompatibleCluster) Error ¶
func (e ErrIncompatibleCluster) Error() string