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

Ensure nodeSelector logic is consistent for all operators #360

Merged

Conversation

olliewalsh
Copy link
Contributor

nodeSelectors are not currently applied consistently across all operators.

Some do not support nodeSelectors at all - will be implemented in this series of pull requests.
Some do not apply them to every pod (jobs/cronjobs esp) - will be resolved in this series of pull requests.
Some do not apply a node selector update correctly, only when not initially set.
Some support nodeSelectors but do not inherit the default nodeSelector from the OpenstackControlPlane CR.

Jira: OSPRH-10734

Switch to a pointer for nodeSelector to allow different logic for empty vs unset
@openshift-ci openshift-ci bot requested review from dprince and fmount November 20, 2024 18:13
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/48ad8b05e53046db94dd79071e959f22

openstack-k8s-operators-content-provider FAILURE in 14m 10s
⚠️ manila-operator-kuttl SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider (non-voting)
⚠️ manila-operator-tempest SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider (non-voting)

@olliewalsh
Copy link
Contributor Author

/override ci/prow/manila-operator-build-deploy-kuttl ci/prow/manila-operator-build-deploy-tempest rdoproject.org/github-check

Copy link
Contributor

openshift-ci bot commented Nov 20, 2024

@olliewalsh: Overrode contexts on behalf of olliewalsh: ci/prow/manila-operator-build-deploy-kuttl, ci/prow/manila-operator-build-deploy-tempest, rdoproject.org/github-check

In response to this:

/override ci/prow/manila-operator-build-deploy-kuttl ci/prow/manila-operator-build-deploy-tempest rdoproject.org/github-check

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link
Contributor

@abays abays left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Contributor

openshift-ci bot commented Nov 21, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, olliewalsh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit bfd56f1 into openstack-k8s-operators:main Nov 21, 2024
9 checks passed
@olliewalsh
Copy link
Contributor Author

/cherry-pick 18.0-fr1

@openshift-cherrypick-robot

@olliewalsh: new pull request created: #361

In response to this:

/cherry-pick 18.0-fr1

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@tosky
Copy link
Contributor

tosky commented Nov 22, 2024

The content-provider job now complains with

    [1/2] STEP 14/15: RUN if [ -f $CACHITO_ENV_FILE ] ; then source $CACHITO_ENV_FILE ; fi ; env ${GO_BUILD_EXTRA_ENV_ARGS} go build ${GO_BUILD_EXTRA_ARGS} -a -o ${DEST_ROOT}/manager main.go
    # github.com/openstack-k8s-operators/openstack-operator/pkg/openstack
    pkg/openstack/manila.go:110:48: cannot use &instance.Spec.NodeSelector (value of type *map[string]string) as map[string]string value in assignment
    Error: building at STEP "RUN if [ -f $CACHITO_ENV_FILE ] ; then source $CACHITO_ENV_FILE ; fi ; env ${GO_BUILD_EXTRA_ENV_ARGS} go build ${GO_BUILD_EXTRA_ARGS} -a -o ${DEST_ROOT}/manager main.go": while running runtime: exit status 1
    make: *** [Makefile:209: docker-build] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants