package diff
import "github.com/docker/compose-on-kubernetes/internal/stackresources/diff"
Index ¶
Types ¶
type StackStateDiff ¶
type StackStateDiff struct {
DeploymentsToAdd []appstypes.Deployment
DeploymentsToDelete []appstypes.Deployment
DeploymentsToUpdate []appstypes.Deployment
StatefulsetsToAdd []appstypes.StatefulSet
StatefulsetsToDelete []appstypes.StatefulSet
StatefulsetsToUpdate []appstypes.StatefulSet
DaemonsetsToAdd []appstypes.DaemonSet
DaemonsetsToDelete []appstypes.DaemonSet
DaemonsetsToUpdate []appstypes.DaemonSet
ServicesToAdd []coretypes.Service
ServicesToDelete []coretypes.Service
ServicesToUpdate []coretypes.Service
}
StackStateDiff is a diff between a current and desired state
func ComputeDiff ¶
func ComputeDiff(current, desired *stackresources.StackState) *StackStateDiff
ComputeDiff computes a diff between a current and a desired stack state
func (*StackStateDiff) Empty ¶
func (d *StackStateDiff) Empty() bool
Empty returns true if the diff is empty
Source Files ¶
- Version
- v0.5.0 (latest)
- Published
- Jan 28, 2022
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 11 months ago –
Tools for package owners.