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

Bug 1795671: Do not set owner references on tuned ServiceAccount (4.2) #109

Merged
merged 1 commit into from Mar 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile.rhel7
Expand Up @@ -3,7 +3,7 @@ WORKDIR /go/src/github.com/openshift/cluster-node-tuning-operator
COPY . .
RUN make build

FROM registry.svc.ci.openshift.org/ocp/4.0:base
FROM registry.svc.ci.openshift.org/ocp/4.2:base
COPY --from=builder /go/src/github.com/openshift/cluster-node-tuning-operator/cluster-node-tuning-operator /usr/bin/
COPY manifests /manifests
RUN useradd cluster-node-tuning-operator
Expand Down
1 change: 0 additions & 1 deletion pkg/controller/tuned/tuned_controller.go
Expand Up @@ -192,7 +192,6 @@ func (r *ReconcileTuned) syncServiceAccount(tuned *tunedv1.Tuned) error {

sa := &corev1.ServiceAccount{}
err = r.cache.Get(context.TODO(), types.NamespacedName{Namespace: saManifest.Namespace, Name: saManifest.Name}, sa)
saManifest.SetOwnerReferences(addOwnerReference(&sa.ObjectMeta, tuned))
if err != nil {
if errors.IsNotFound(err) {
err = r.client.Create(context.TODO(), saManifest)
Expand Down