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

Update placementapi to use service override #61

Merged

Conversation

stuggi
Copy link
Contributor

@stuggi stuggi commented Sep 7, 2023

Removes creation of routes. Those get done in the openstack-operator. Via service overrides the service can be customized. The service operator adds annotation to the service which needs to be exposed as a route.

Jira: OSP-26690

Depends-On: openstack-k8s-operators/lib-common#332
Depends-On: openstack-k8s-operators/keystone-operator#307

@openshift-ci openshift-ci bot requested review from dprince and SeanMooney September 7, 2023 07:56
@stuggi
Copy link
Contributor Author

stuggi commented Sep 7, 2023

/hold

@gibizer
Copy link
Collaborator

gibizer commented Sep 20, 2023

The kuttl test failed on the service labels it seems there was some changes there. Is this intentional?

    case.go:366: --- Service:placement-kuttl-tests/placement-internal
        +++ Service:placement-kuttl-tests/placement-internal
        @@ -1,15 +1,70 @@
         apiVersion: v1
         kind: Service
         metadata:
        +  annotations:
        +    core.openstack.org/ingress_create: "false"
        +    endpoint: internal
           labels:
        -    internal: "true"
        +    endpoint: internal
             service: placement
case.go:366: --- Service:placement-kuttl-tests/placement-public
        +++ Service:placement-kuttl-tests/placement-public
        @@ -1,15 +1,70 @@
         apiVersion: v1
         kind: Service
         metadata:
        +  annotations:
        +    core.openstack.org/ingress_create: "true"
        +    endpoint: public
           labels:
        -    public: "true"
        +    endpoint: public
             service: placement

@stuggi
Copy link
Contributor Author

stuggi commented Sep 20, 2023

The kuttl test failed on the service labels it seems there was some changes there. Is this intentional?

    case.go:366: --- Service:placement-kuttl-tests/placement-internal
        +++ Service:placement-kuttl-tests/placement-internal
        @@ -1,15 +1,70 @@
         apiVersion: v1
         kind: Service
         metadata:
        +  annotations:
        +    core.openstack.org/ingress_create: "false"
        +    endpoint: internal
           labels:
        -    internal: "true"
        +    endpoint: internal
             service: placement
case.go:366: --- Service:placement-kuttl-tests/placement-public
        +++ Service:placement-kuttl-tests/placement-public
        @@ -1,15 +1,70 @@
         apiVersion: v1
         kind: Service
         metadata:
        +  annotations:
        +    core.openstack.org/ingress_create: "true"
        +    endpoint: public
           labels:
        -    public: "true"
        +    endpoint: public
             service: placement

yes, that was intentional. I have to update the kuttl tests. waiting for the infra-operator and keystone-operator PR to land. Then I'll update the other operators

Removes creation of routes.Those get done in the openstack-operator.
Via service overrides the service can be customized. The service operator
adds annotation to the service which needs to be exposed as a route.

Jira: OSP-26690

Depends-On: openstack-k8s-operators/lib-common#332
Copy link
Collaborator

@gibizer gibizer left a comment

Choose a reason for hiding this comment

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

Looks good to me. Special thanks for adding envtest coverage.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gibizer, stuggi

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

@stuggi
Copy link
Contributor Author

stuggi commented Sep 20, 2023

/unhold

@openshift-merge-robot openshift-merge-robot merged commit 3c99d09 into openstack-k8s-operators:main Sep 20, 2023
1 check passed
@@ -5,7 +5,6 @@
# No Deployment for PlacementAPI CR
# No Pods in placement Deployment
# No Placement Services
# No Placement Routes
Copy link
Contributor

@bogdando bogdando Sep 20, 2023

Choose a reason for hiding this comment

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

nit: please add "No configMaps for scripts and service configs"

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