mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-01 15:48:51 +00:00
Rename asRuntime* -> asClient*
For the avoidance of misdirection. Signed-off-by: Michael Bridgen <michael@weave.works>
This commit is contained in:
parent
d03280a12f
commit
cafce536bb
10 changed files with 24 additions and 24 deletions
|
|
@ -78,7 +78,7 @@ func (export exportCommand) run(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
|
||||
if exportAll {
|
||||
err = kubeClient.List(ctx, export.list.asRuntimeList(), client.InNamespace(namespace))
|
||||
err = kubeClient.List(ctx, export.list.asClientList(), client.InNamespace(namespace))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -99,7 +99,7 @@ func (export exportCommand) run(cmd *cobra.Command, args []string) error {
|
|||
Namespace: namespace,
|
||||
Name: name,
|
||||
}
|
||||
err = kubeClient.Get(ctx, namespacedName, export.object.asRuntimeObject())
|
||||
err = kubeClient.Get(ctx, namespacedName, export.object.asClientObject())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue