equality

package
v0.3.7-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package equality defines equality semantics for KubeadmConfigs, and utility tools for identifying equivalent configurations.

There are a number of distinct but not different ways to express the "same" Kubeadm configuration, and so this package attempts to sort out what differences are likely meaningful or intentional.

It is inspired by the observation that k/k no longer relies on hashing to identify "current" versions ReplicaSets, instead using a semantic equality check that's more amenable to field modifications and deletions: https://github.com/kubernetes/kubernetes/blob/0bb125e731/pkg/controller/deployment/util/deployment_util.go#L630-L634

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SemanticMerge

func SemanticMerge(current, incoming bootstrapv1.KubeadmConfigSpec, cluster *clusterv1.Cluster) bootstrapv1.KubeadmConfigSpec

SemanticMerge takes two KubeConfigSpecs and produces a third that is semantically equivalent to the other two by way of merging non-behavior-changing fields from incoming into current.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL