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

🌱 Move filter conversions out of /api #1924

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

mdbooth
Copy link
Contributor

@mdbooth mdbooth commented Mar 5, 2024

Removes a gophercloud dependency for consumers of the API.

This is the complement to #1920. Together they remove most external dependencies when importing v1beta1, although due to the conversion dependency importing prior versions still also pull in controller-runtime.

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 5, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mdbooth

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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 5, 2024
Copy link

netlify bot commented Mar 5, 2024

Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!

Name Link
🔨 Latest commit d33fee8
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/65e8a3231cb88d0008fc1776
😎 Deploy Preview https://deploy-preview-1924--kubernetes-sigs-cluster-api-openstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

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

Have you tested, with this PR in combination with #1920 what happens to a go.mod if you write a simple program that imports one of your v1beta1 types and just prints it out or something simple?

Would be good to see what go.mod that creates

@mdbooth mdbooth force-pushed the filter_convert branch 2 times, most recently from ef92315 to c8b9ea2 Compare March 5, 2024 12:45
@mdbooth
Copy link
Contributor Author

mdbooth commented Mar 5, 2024

Have you tested, with this PR in combination with #1920 what happens to a go.mod if you write a simple program that imports one of your v1beta1 types and just prints it out or something simple?

Would be good to see what go.mod that creates

main.go:

package main

import (
        "fmt"

        "sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1"
)

func main() {
        cluster := v1beta1.OpenStackCluster{}
        fmt.Printf("%+v\n", cluster)
}

go.mod:

require sigs.k8s.io/cluster-api-provider-openstack v0.9.0

require (
        github.com/emicklei/go-restful/v3 v3.11.0 // indirect
        github.com/go-logr/logr v1.3.0 // indirect
        github.com/go-openapi/jsonpointer v0.19.6 // indirect
        github.com/go-openapi/jsonreference v0.20.2 // indirect
        github.com/go-openapi/swag v0.22.3 // indirect
        github.com/gogo/protobuf v1.3.2 // indirect
        github.com/golang/protobuf v1.5.3 // indirect
        github.com/google/gnostic-models v0.6.8 // indirect
        github.com/google/go-cmp v0.6.0 // indirect
        github.com/google/gofuzz v1.2.0 // indirect
        github.com/josharian/intern v1.0.0 // indirect
        github.com/json-iterator/go v1.1.12 // indirect
        github.com/mailru/easyjson v0.7.7 // indirect
        github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
        github.com/modern-go/reflect2 v1.0.2 // indirect
        github.com/pkg/errors v0.9.1 // indirect
        golang.org/x/net v0.19.0 // indirect
        golang.org/x/text v0.14.0 // indirect
        google.golang.org/protobuf v1.31.0 // indirect
        gopkg.in/inf.v0 v0.9.1 // indirect
        gopkg.in/yaml.v2 v2.4.0 // indirect
        gopkg.in/yaml.v3 v3.0.1 // indirect
        k8s.io/api v0.28.4 // indirect
        k8s.io/apiextensions-apiserver v0.28.4 // indirect
        k8s.io/apimachinery v0.28.4 // indirect
        k8s.io/klog/v2 v2.100.1 // indirect
        k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
        k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect
        sigs.k8s.io/cluster-api v1.6.0 // indirect
        sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
        sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
)

@mdbooth
Copy link
Contributor Author

mdbooth commented Mar 5, 2024

/test pull-cluster-api-provider-openstack-e2e-full-test

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 5, 2024
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

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/test-infra repository.

Copy link
Contributor

@jichenjc jichenjc left a comment

Choose a reason for hiding this comment

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

/lgtm

@@ -1,5 +1,5 @@
/*
Copyright 2021 The Kubernetes Authors.
Copyright 2023 The Kubernetes Authors.
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe 2024 :)

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 6, 2024
Removes a gophercloud dependency for consumers of the API.
@k8s-ci-robot k8s-ci-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Mar 6, 2024
@huxcrux
Copy link
Contributor

huxcrux commented Mar 7, 2024

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 7, 2024
@EmilienM
Copy link
Contributor

EmilienM commented Mar 8, 2024

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 8, 2024
@k8s-ci-robot k8s-ci-robot merged commit 300c45c into kubernetes-sigs:main Mar 8, 2024
9 checks passed
@mdbooth mdbooth deleted the filter_convert branch March 8, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

6 participants