Skip to content

Commit

Permalink
Public override fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Jun 24, 2024
1 parent 9bcd638 commit 40131d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/kubectl-k8ssandra/register/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ func NewRegistrationExecutorFromRegisterClusterCmd(cmd cobra.Command) *Registrat
SourceNamespace: cmd.Flag("source-namespace").Value.String(),
DestNamespace: cmd.Flag("dest-namespace").Value.String(),
ServiceAccount: cmd.Flag("serviceaccount-name").Value.String(),
overrideSourceIP: cmd.Flag("oride-src-ip").Value.String(),
overrideSourcePort: cmd.Flag("oride-src-port").Value.String(),
OverrideSourceIP: cmd.Flag("oride-src-ip").Value.String(),
OverrideSourcePort: cmd.Flag("oride-src-port").Value.String(),
Context: cmd.Context(),
DestinationName: destName,
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/kubectl-k8ssandra/register/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ type RegistrationExecutor struct {
SourceNamespace string
DestNamespace string
ServiceAccount string
overrideSourceIP string
overrideSourcePort string
OverrideSourceIP string
OverrideSourcePort string
Context context.Context
}

Expand Down Expand Up @@ -103,7 +103,7 @@ func (e *RegistrationExecutor) RegisterCluster() error {
}

// Create Secret on destination cluster
host, err := registration.KubeconfigToHost(e.SourceKubeconfig, e.SourceContext, e.overrideSourceIP, e.overrideSourcePort)
host, err := registration.KubeconfigToHost(e.SourceKubeconfig, e.SourceContext, e.OverrideSourceIP, e.OverrideSourcePort)
if err != nil {
return err
}
Expand Down

0 comments on commit 40131d2

Please sign in to comment.