Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make /oem/registration the default configuration dir for elemental-operator client #81

Merged
merged 1 commit into from
Jul 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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