-
Notifications
You must be signed in to change notification settings - Fork 440
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
Add creation of ServiceAccount to the Target Allocator #836
Add creation of ServiceAccount to the Target Allocator #836
Conversation
bundle/manifests/opentelemetry-operator.clusterserviceversion.yaml
Outdated
Show resolved
Hide resolved
func ServiceAccountName(instance v1alpha1.OpenTelemetryCollector) string { | ||
if len(instance.Spec.TargetAllocator.ServiceAccount) == 0 { | ||
return naming.ServiceAccount(instance) | ||
} | ||
|
||
return instance.Spec.TargetAllocator.ServiceAccount | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This matches what is done for the collector
bundle/manifests/opentelemetry-operator.clusterserviceversion.yaml
Outdated
Show resolved
Hide resolved
…or into target-allocator-service-account
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Aneurysm9 can you start the pipeline?
@Aneurysm9 Could you restart the pipeline as discussed here. https://cloud-native.slack.com/archives/C033BJ8BASU/p1651593666172049?thread_ts=1650910340.666659&cid=C033BJ8BASU Thanks! |
…or into target-allocator-service-account
Maybe @pavolloffay can review/merge this one, as JP is out on parental leave? |
@carlosalberto, @secustor, I just restarted the jobs. |
…y#836) * Added the creation or linking of an existing service account to the target allocator * Fix test * Updated from feedback * Fixed test package
This PR creates a service account for use by the target allocator. This will let a user of the targetallocator bind roles to it which will allow the allocator to run it's loop.
Closes #834