Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(kubernetes): Update API group of NetworkPolicy and PodSecurityP…
…olicy (#4058) * refactor(kubernetes): Remove getters from KubernetesKind Once a KubernetesKind has been created, external classes should (and do) only care about its string representation, not the individual fields. Remove the unused getters from the name and apiGroup fields (and update one test that was relying on them). * chore(kubernetes): Update API group of NetworkPolicy and PodSecurityPolicy The NetworkPolicy and PodSecurityPolicy kinds have been moved from extensions/v1beta1 to networking.k8s.io/v1 and policy/v1beta1 respectively. Update the API group for these kinds in KubernetesKind. Given how the V2 provider queries kinds, this change actually has no functional effect as kinds from built-in API groups are serialized as the kind name alone (wihtout api group) leaving kubectl to resolve the API group. As a result this will neither break users on old versions of Kubernetes nor would failing to make this change have broken users of 1.16 when API stops serving from the old endpoints. That being said, it makes sense to keep these API groups up to date, both for documentation reasons and in the event that in the future we begin using them. * chore(kubernetes): Update API group of Ingress Ingress has moved to networking.k8s.io
- Loading branch information