Skip to content

Conversation

timebertt
Copy link
Member

How to categorize this PR?

/area dev-productivity
/kind cleanup

What this PR does / why we need it:

This PR drops the internal version of the extensions/pkg/apis/config API.
There wasn't even any conversion code and we only used the internal version. So get rid of the duplication to prevent confusion and reduce development/maintenance efforts.

Which issue(s) this PR fixes:
Part of #11043

Special notes for your reviewer:

Release note:

The package `github.com/gardener/gardener/extensions/pkg/apis/config` has been dropped. Use the versioned variant of the package instead: `github.com/gardener/gardener/extensions/pkg/apis/config/v1alpha1`.

@gardener-prow gardener-prow bot added area/dev-productivity Developer productivity related (how to improve development) kind/cleanup Something that is not needed anymore and can be cleaned up labels Dec 17, 2024
@gardener-prow gardener-prow bot added cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 17, 2024
@oliver-goetz
Copy link
Member

/test all

@ary1992
Copy link
Contributor

ary1992 commented Dec 18, 2024

/retest

Copy link
Contributor

@ary1992 ary1992 left a comment

Choose a reason for hiding this comment

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

Thanks!
/lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Dec 18, 2024
Copy link
Contributor

gardener-prow bot commented Dec 18, 2024

LGTM label has been added.

Git tree hash: 596b90ccb28e10d9ecb6d042d9e58cdbca0a09c1

@timebertt timebertt force-pushed the config-apis-extensions branch from 299573c to e56d5af Compare December 18, 2024 06:52
@gardener-prow gardener-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Dec 18, 2024
@gardener-prow gardener-prow bot requested a review from ary1992 December 18, 2024 06:52
Copy link
Member

@marc1404 marc1404 left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

From the PR description: It was probably meant to say that we're only using the external version, right?

This PR drops the internal version of the extensions/pkg/apis/config API.
There wasn't even any conversion code and we only used the internal external version.

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Dec 18, 2024
Copy link
Contributor

gardener-prow bot commented Dec 18, 2024

LGTM label has been added.

Git tree hash: 1f6c42ac583d77c2e06295774e92d1d29301f65d

Copy link
Contributor

gardener-prow bot commented Dec 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: marc1404

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

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 18, 2024
@rfranzke
Copy link
Member

/lgtm

@gardener-prow gardener-prow bot merged commit 6269ede into gardener:master Dec 18, 2024
19 checks passed
@timebertt timebertt deleted the config-apis-extensions branch December 18, 2024 12:21
@timebertt
Copy link
Member Author

From the PR description: It was probably meant to say that we're only using the external version, right?

This PR drops the internal version of the extensions/pkg/apis/config API.
There wasn't even any conversion code and we only used the internal external version.

We always used the internal version before this change. From now on, there is only the external version and we switch all usages to the external version.

ialidzhikov added a commit to ialidzhikov/gardener that referenced this pull request Jul 29, 2025
`github.com/gardener/gardener/extensions/pkg/apis/config` was removed with gardener#11056.
gardener-prow bot pushed a commit that referenced this pull request Aug 13, 2025
* Clean up exclusion of non-existing `pkg/client/extensions` path

Extension clients are no longer generated after #4592.

* Clean up exclusion of non-existing `builtin$` path

I don't find in the project a path matching `builtin$`.

* Clean up exclusion of non-existing `examples$` path

I don't find in the project a path matching `examples$`. We have a dir named `example/`, not `examples/`.

* Update fluent-operator import alias

With #11673, the fluent-operator imports were updated from `github.com/fluent/fluent-operator/v2` to `github.com/fluent/fluent-operator/v3`.

* Clean up import alias for non-existing pkg

`github.com/gardener/gardener/extensions/pkg/apis/config` was removed with #11056.

* Clean up import alias for non-existing pkg(s)

Internal component config APIs were removed. See #11043

* Add `pkg/client/security` to the list of excluded dirs

`pkg/client/security` contains generated clientset, informers and listers. Similar to the other generated dirs, it should be excluded.

* Update the import alias for etcd-druid crds pkg

Introduced with #11545. The correct pkg is `github.com/gardener/etcd-druid/api/core/v1alpha1/crds`, not `github.com/gardener/etcd-druid/api/core/crds`.

* Clean up paths with generated code from `linters.exclusions.paths`

We already use `linters.exclusions.generated=lax`. `lax` mode should automatically detect and ignore generated files.
Ref https://golangci-lint.run/usage/configuration/#linters-configuration

* Clean up the exclusion of the `third_party` path

In the Makefile, we explicitly pass the paths to be checked. `third_party` is not among them. Hence, there is no need to exclude it as we don't check for it.
https://github.com/gardener/gardener/blob/v1.124.0/Makefile#L165

* Don't check for imports under `third_party`

`third_party` currently contains a forked dependency and generated mocks. Hence, I don't see much value for checking for imports there as it does not contain a pkg which is not generated or not copied.

* Address PR review feedback from dimitar-kostadinov
Duciwuci pushed a commit to stackitcloud/gardener that referenced this pull request Sep 1, 2025
* Clean up exclusion of non-existing `pkg/client/extensions` path

Extension clients are no longer generated after gardener#4592.

* Clean up exclusion of non-existing `builtin$` path

I don't find in the project a path matching `builtin$`.

* Clean up exclusion of non-existing `examples$` path

I don't find in the project a path matching `examples$`. We have a dir named `example/`, not `examples/`.

* Update fluent-operator import alias

With gardener#11673, the fluent-operator imports were updated from `github.com/fluent/fluent-operator/v2` to `github.com/fluent/fluent-operator/v3`.

* Clean up import alias for non-existing pkg

`github.com/gardener/gardener/extensions/pkg/apis/config` was removed with gardener#11056.

* Clean up import alias for non-existing pkg(s)

Internal component config APIs were removed. See gardener#11043

* Add `pkg/client/security` to the list of excluded dirs

`pkg/client/security` contains generated clientset, informers and listers. Similar to the other generated dirs, it should be excluded.

* Update the import alias for etcd-druid crds pkg

Introduced with gardener#11545. The correct pkg is `github.com/gardener/etcd-druid/api/core/v1alpha1/crds`, not `github.com/gardener/etcd-druid/api/core/crds`.

* Clean up paths with generated code from `linters.exclusions.paths`

We already use `linters.exclusions.generated=lax`. `lax` mode should automatically detect and ignore generated files.
Ref https://golangci-lint.run/usage/configuration/#linters-configuration

* Clean up the exclusion of the `third_party` path

In the Makefile, we explicitly pass the paths to be checked. `third_party` is not among them. Hence, there is no need to exclude it as we don't check for it.
https://github.com/gardener/gardener/blob/v1.124.0/Makefile#L165

* Don't check for imports under `third_party`

`third_party` currently contains a forked dependency and generated mocks. Hence, I don't see much value for checking for imports there as it does not contain a pkg which is not generated or not copied.

* Address PR review feedback from dimitar-kostadinov
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. area/dev-productivity Developer productivity related (how to improve development) cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/cleanup Something that is not needed anymore and can be cleaned up lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants