// If we're dry-running; we should create a faked client that answers some GETs in order to be able to do the full init flow and just logs the rest of requests
// ClientBackedDryRunGetter implements the DryRunGetter interface for use in NewDryRunClient() and proxies all GET and LIST requests to the backing API server reachable via rest.Config
typeClientBackedDryRunGetterstruct{
baseConfig*rest.Config
dynClientPooldynamic.ClientPool
}
// InitDryRunGetter should implement the DryRunGetter interface
var_DryRunGetter=&ClientBackedDryRunGetter{}
// NewClientBackedDryRunGetter creates a new ClientBackedDryRunGetter instance based on the rest.Config object
// logDryRunAction logs the action that was recorded by the "catch-all" (*,*) reactor and tells the user what would have happened in an user-friendly way
fmt.Fprintf(w,"[dryrun] Would perform action %s on resource %q in API group \"%s/%s\"\n",strings.ToUpper(action.GetVerb()),action.GetResource().Resource,group,action.GetResource().Version)