这是indexloc提供的服务,不要输入任何密码
Skip to content

Operator Helper fails to work with limited licenses #749

@tankbusta

Description

@tankbusta

In some instances, a LogScale license cannot create additional accounts. The code below attempts to locate the default user in a single org environment by looking for the username admin. However, by default (docs) the username is user and thus the helper code will attempt to create a user when the license prevents it.

if user.Username == adminAccountUserName {
fmt.Printf("Found user ID using single-organization query.\n")
return user.Id, nil
}
}

This will lead to the helper spamming with the following error

Got err trying to obtain user ID of admin user: License does not allow adding users. Please contact Humio support.
Could not validate existing admin secret: Unable to validate if kubernetes secret logscale-admin-token holds a valid humio API token
Continuing to create/update token.
Got err trying to obtain user ID of admin user: License does not allow adding users. Please contact Humio support.
Could not validate existing admin secret: Unable to validate if kubernetes secret logscale-admin-token holds a valid humio API token
Continuing to create/update token.

You can work around this today by setting SINGLE_USER_USERNAME to admin but it might make sense to update this check to look for both admin & user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions