Skip to content

Seedjobs do not support authorizationStrategy: serviceAccount #1090

@knutejohKLP

Description

@knutejohKLP

Describe the bug
When trying to set up seed jobs with authorizationStrategy set to serviceAccount, the operator crashes and goes into a restart loop. The code at https://github.com/jenkinsci/kubernetes-operator/blob/master/pkg/client/jenkins.go#L208 ends up with a bad reference since the BasicAuth property is not set, causing the operator to panic and restart.

To Reproduce
Set authorizationStrategy to serviceAccount, and add a seedjob. We use the openshift-login plugin to enforce logins with openshift credentials.

Additional information

Kubernetes version:
Jenkins Operator version: 0.8.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions