Skip to content

Commit

Permalink
Make /oem/registration the default configuration dir (#81)
Browse files Browse the repository at this point in the history
This commit uses /oem/registration as the default directory
to load configuration from in elemental-opertator register command

Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany authored Jul 22, 2022
1 parent 9b9844b commit cf20bc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/operator/register/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const (
agentStateDir = "/var/lib/elemental/agent"
agentConfDir = "/etc/rancher/elemental/agent"
afterInstallHook = "/oem/install-hook.yaml"
regConfDir = "/oem/registration"

// This file stores the registration URL and certificate used for the registration
// this file will be stored into the install system by an after-install hook
Expand All @@ -64,7 +65,7 @@ func NewRegisterCommand() *cobra.Command {
}
logrus.Infof("Operator version %s, commit %s, commit date %s", version.Version, version.Commit, version.CommitDate)
if len(args) == 0 {
args = append(args, "/oem")
args = append(args, regConfDir)
}

for _, arg := range args {
Expand Down

0 comments on commit cf20bc6

Please sign in to comment.