...

Package diff

import "sigs.k8s.io/cli-utils/cmd/diff"
Overview
Index

Overview ▾

func Initialize

func Initialize(o *diff.DiffOptions, f util.Factory, args []string) (func(), error)

Initialize fills in the DiffOptions in preparation for DiffOptions.Run(). Returns a cleanup function for removing temp files after expanding stdin, or error if there is an error filling in the options or if there is not one argument that is a directory.

func NewCommand

func NewCommand(f util.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCommand returns cobra command to implement client-side diff of package directory. For each local config file, get the resource in the cluster and diff the local config resource against the resource in the cluster.