Skip to content

Commit

Permalink
Update to Kubernetes v1.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
iabudiab committed Aug 20, 2023
1 parent 12ae90b commit 4b483a3
Show file tree
Hide file tree
Showing 622 changed files with 5,278 additions and 1,348 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## 0.12.0

- Update to Kubernetes v1.28.0

## 0.11.0

- Drop support for Swift 5.5

## 0.10.0

- Update to Kubernetes v1.26.4

## 0.9.0

- Update to Kubernetes v1.25.9
- Add `CronJob/generateJob()` and `GenerateRandomHash`

## 0.8.0

- Update to Kubernetes 1.24.10
Expand Down
33 changes: 17 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<p align="center">
<img src="https://img.shields.io/badge/Swift-5.6-orange.svg" />
<a href="https://v1-26.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/">
<img src="https://img.shields.io/badge/Kubernetes-1.24.8-blue.svg" alt="Kubernetes 1.26.4"/>
<a href="https://v1-28.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/">
<img src="https://img.shields.io/badge/Kubernetes-1.28.0-blue.svg" alt="Kubernetes 1.28.0"/>
</a>
<a href="https://swift.org/package-manager">
<img src="https://img.shields.io/badge/swiftpm-compatible-brightgreen.svg?style=flat" alt="Swift Package Manager" />
Expand Down Expand Up @@ -41,18 +41,19 @@

## Compatibility Matrix

| | <1.18.9 | 1.18.9 - 1.18.13 | 1.19.8 | 1.20.9 | 1.22.7 | 1.24.8 | 1.24.10 | 1.25.9 | 1.26.4 |
|----------|---------|------------------|--------|--------|--------|--------|---------|--------|--------|
| `0.2.x` | - || - | - | - | - | - | - | - |
| `0.3.x` | - | - || - | - | - | - | - | - |
| `0.4.x` | - | - | - || - | - | - | - | - |
| `0.5.x` | - | - | - | - || - | - | - | - |
| `0.6.x` | - | - | - | - | - || - | - | - |
| `0.7.x` | - | - | - | - | - || - | - | - |
| `0.8.x` | - | - | - | - | - | - || - | - |
| `0.9.x` | - | - | - | - | - | - | - || - |
| `0.10.x` | - | - | - | - | - | - | - | - ||
| `0.11.x` | - | - | - | - | - | - | - | - ||
| | <1.18.9 | 1.18.9 - 1.18.13 | 1.19.8 | 1.20.9 | 1.22.7 | 1.24.8 | 1.24.10 | 1.25.9 | 1.26.4 | 1.28.0 |
|----------|---------|------------------|--------|--------|--------|--------|---------|--------|--------|--------|
| `0.2.x` | - || - | - | - | - | - | - | - | - |
| `0.3.x` | - | - || - | - | - | - | - | - | - |
| `0.4.x` | - | - | - || - | - | - | - | - | - |
| `0.5.x` | - | - | - | - || - | - | - | - | - |
| `0.6.x` | - | - | - | - | - || - | - | - | - |
| `0.7.x` | - | - | - | - | - || - | - | - | - |
| `0.8.x` | - | - | - | - | - | - || - | - | - |
| `0.9.x` | - | - | - | - | - | - | - || - | - |
| `0.10.x` | - | - | - | - | - | - | - | - || - |
| `0.11.x` | - | - | - | - | - | - | - | - || - |
| `0.12.x` | - | - | - | - | - | - | - | - | - ||

- `` Exact match of API objects in both model and the Kubernetes version.
- `-` API objects mismatches either due to the removal of old API or the addition of new API. However, everything the
Expand Down Expand Up @@ -413,7 +414,7 @@ print(spec?["cronSpec"])
To use the `SwiftkubeModel` in a SwiftPM project, add the following line to the dependencies in your `Package.swift` file:

```swift
.package(name: "SwiftkubeModel", url: "https://github.com/swiftkube/model.git", from: "0.7.0")
.package(name: "SwiftkubeModel", url: "https://github.com/swiftkube/model.git", from: "0.12.0")
```

then include it as a dependency in your target:
Expand All @@ -424,7 +425,7 @@ import PackageDescription
let package = Package(
// ...
dependencies: [
.package(name: "SwiftkubeModel", url: "https://github.com/swiftkube/model.git", from: "0.7.0")
.package(name: "SwiftkubeModel", url: "https://github.com/swiftkube/model.git", from: "0.12.0")
],
targets: [
.target(name: "<your-target>", dependencies: [
Expand Down
17 changes: 11 additions & 6 deletions Sources/Model/GroupVersionKind+DefaultResources.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

///
/// Generated by Swiftkube:ModelGen
/// Kubernetes v1.26.4
/// Kubernetes v1.28.0
///

import Foundation
Expand Down Expand Up @@ -45,6 +45,8 @@ public extension GroupVersionKind {
static let coreV1ServiceAccount = GroupVersionKind(group: "core", version: "v1", kind: "ServiceAccount")
static let admissionregistrationV1MutatingWebhookConfiguration = GroupVersionKind(group: "admissionregistration.k8s.io", version: "v1", kind: "MutatingWebhookConfiguration")
static let admissionregistrationV1ValidatingWebhookConfiguration = GroupVersionKind(group: "admissionregistration.k8s.io", version: "v1", kind: "ValidatingWebhookConfiguration")
static let admissionregistrationV1Beta1ValidatingAdmissionPolicy = GroupVersionKind(group: "admissionregistration.k8s.io", version: "v1beta1", kind: "ValidatingAdmissionPolicy")
static let admissionregistrationV1Beta1ValidatingAdmissionPolicyBinding = GroupVersionKind(group: "admissionregistration.k8s.io", version: "v1beta1", kind: "ValidatingAdmissionPolicyBinding")
static let admissionregistrationV1Alpha1ValidatingAdmissionPolicy = GroupVersionKind(group: "admissionregistration.k8s.io", version: "v1alpha1", kind: "ValidatingAdmissionPolicy")
static let admissionregistrationV1Alpha1ValidatingAdmissionPolicyBinding = GroupVersionKind(group: "admissionregistration.k8s.io", version: "v1alpha1", kind: "ValidatingAdmissionPolicyBinding")
static let apiextensionsV1CustomResourceDefinition = GroupVersionKind(group: "apiextensions.k8s.io", version: "v1", kind: "CustomResourceDefinition")
Expand All @@ -54,8 +56,10 @@ public extension GroupVersionKind {
static let appsV1Deployment = GroupVersionKind(group: "apps", version: "v1", kind: "Deployment")
static let appsV1ReplicaSet = GroupVersionKind(group: "apps", version: "v1", kind: "ReplicaSet")
static let appsV1StatefulSet = GroupVersionKind(group: "apps", version: "v1", kind: "StatefulSet")
static let authenticationV1SelfSubjectReview = GroupVersionKind(group: "authentication.k8s.io", version: "v1", kind: "SelfSubjectReview")
static let authenticationV1TokenRequest = GroupVersionKind(group: "authentication.k8s.io", version: "v1", kind: "TokenRequest")
static let authenticationV1TokenReview = GroupVersionKind(group: "authentication.k8s.io", version: "v1", kind: "TokenReview")
static let authenticationV1Beta1SelfSubjectReview = GroupVersionKind(group: "authentication.k8s.io", version: "v1beta1", kind: "SelfSubjectReview")
static let authenticationV1Alpha1SelfSubjectReview = GroupVersionKind(group: "authentication.k8s.io", version: "v1alpha1", kind: "SelfSubjectReview")
static let authorizationV1LocalSubjectAccessReview = GroupVersionKind(group: "authorization.k8s.io", version: "v1", kind: "LocalSubjectAccessReview")
static let authorizationV1SelfSubjectAccessReview = GroupVersionKind(group: "authorization.k8s.io", version: "v1", kind: "SelfSubjectAccessReview")
Expand All @@ -66,6 +70,7 @@ public extension GroupVersionKind {
static let batchV1CronJob = GroupVersionKind(group: "batch", version: "v1", kind: "CronJob")
static let batchV1Job = GroupVersionKind(group: "batch", version: "v1", kind: "Job")
static let certificatesV1CertificateSigningRequest = GroupVersionKind(group: "certificates.k8s.io", version: "v1", kind: "CertificateSigningRequest")
static let certificatesV1Alpha1ClusterTrustBundle = GroupVersionKind(group: "certificates.k8s.io", version: "v1alpha1", kind: "ClusterTrustBundle")
static let coordinationV1Lease = GroupVersionKind(group: "coordination.k8s.io", version: "v1", kind: "Lease")
static let discoveryV1EndpointSlice = GroupVersionKind(group: "discovery.k8s.io", version: "v1", kind: "EndpointSlice")
static let eventsV1Event = GroupVersionKind(group: "events.k8s.io", version: "v1", kind: "Event")
Expand All @@ -78,21 +83,21 @@ public extension GroupVersionKind {
static let networkingV1IngressClass = GroupVersionKind(group: "networking.k8s.io", version: "v1", kind: "IngressClass")
static let networkingV1NetworkPolicy = GroupVersionKind(group: "networking.k8s.io", version: "v1", kind: "NetworkPolicy")
static let networkingV1Alpha1ClusterCIDR = GroupVersionKind(group: "networking.k8s.io", version: "v1alpha1", kind: "ClusterCIDR")
static let networkingV1Alpha1IPAddress = GroupVersionKind(group: "networking.k8s.io", version: "v1alpha1", kind: "IPAddress")
static let nodeV1RuntimeClass = GroupVersionKind(group: "node.k8s.io", version: "v1", kind: "RuntimeClass")
static let policyV1PodDisruptionBudget = GroupVersionKind(group: "policy", version: "v1", kind: "PodDisruptionBudget")
static let rbacV1ClusterRole = GroupVersionKind(group: "rbac.authorization.k8s.io", version: "v1", kind: "ClusterRole")
static let rbacV1ClusterRoleBinding = GroupVersionKind(group: "rbac.authorization.k8s.io", version: "v1", kind: "ClusterRoleBinding")
static let rbacV1Role = GroupVersionKind(group: "rbac.authorization.k8s.io", version: "v1", kind: "Role")
static let rbacV1RoleBinding = GroupVersionKind(group: "rbac.authorization.k8s.io", version: "v1", kind: "RoleBinding")
static let resourceV1Alpha1PodScheduling = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha1", kind: "PodScheduling")
static let resourceV1Alpha1ResourceClaim = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha1", kind: "ResourceClaim")
static let resourceV1Alpha1ResourceClaimTemplate = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha1", kind: "ResourceClaimTemplate")
static let resourceV1Alpha1ResourceClass = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha1", kind: "ResourceClass")
static let resourceV1Alpha2PodSchedulingContext = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha2", kind: "PodSchedulingContext")
static let resourceV1Alpha2ResourceClaim = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha2", kind: "ResourceClaim")
static let resourceV1Alpha2ResourceClaimTemplate = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha2", kind: "ResourceClaimTemplate")
static let resourceV1Alpha2ResourceClass = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha2", kind: "ResourceClass")
static let schedulingV1PriorityClass = GroupVersionKind(group: "scheduling.k8s.io", version: "v1", kind: "PriorityClass")
static let storageV1CSIDriver = GroupVersionKind(group: "storage.k8s.io", version: "v1", kind: "CSIDriver")
static let storageV1CSINode = GroupVersionKind(group: "storage.k8s.io", version: "v1", kind: "CSINode")
static let storageV1CSIStorageCapacity = GroupVersionKind(group: "storage.k8s.io", version: "v1", kind: "CSIStorageCapacity")
static let storageV1StorageClass = GroupVersionKind(group: "storage.k8s.io", version: "v1", kind: "StorageClass")
static let storageV1VolumeAttachment = GroupVersionKind(group: "storage.k8s.io", version: "v1", kind: "VolumeAttachment")
static let storageV1Beta1CSIStorageCapacity = GroupVersionKind(group: "storage.k8s.io", version: "v1beta1", kind: "CSIStorageCapacity")
}
32 changes: 21 additions & 11 deletions Sources/Model/GroupVersionKind+KubernetesAPIResource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

///
/// Generated by Swiftkube:ModelGen
/// Kubernetes v1.26.4
/// Kubernetes v1.28.0
///

import Foundation
Expand Down Expand Up @@ -78,6 +78,10 @@ public extension GroupVersionKind {
self = .admissionregistrationV1MutatingWebhookConfiguration
case is admissionregistration.v1.ValidatingWebhookConfiguration.Type:
self = .admissionregistrationV1ValidatingWebhookConfiguration
case is admissionregistration.v1beta1.ValidatingAdmissionPolicy.Type:
self = .admissionregistrationV1Beta1ValidatingAdmissionPolicy
case is admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding.Type:
self = .admissionregistrationV1Beta1ValidatingAdmissionPolicyBinding
case is admissionregistration.v1alpha1.ValidatingAdmissionPolicy.Type:
self = .admissionregistrationV1Alpha1ValidatingAdmissionPolicy
case is admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding.Type:
Expand All @@ -96,10 +100,14 @@ public extension GroupVersionKind {
self = .appsV1ReplicaSet
case is apps.v1.StatefulSet.Type:
self = .appsV1StatefulSet
case is authentication.v1.SelfSubjectReview.Type:
self = .authenticationV1SelfSubjectReview
case is authentication.v1.TokenRequest.Type:
self = .authenticationV1TokenRequest
case is authentication.v1.TokenReview.Type:
self = .authenticationV1TokenReview
case is authentication.v1beta1.SelfSubjectReview.Type:
self = .authenticationV1Beta1SelfSubjectReview
case is authentication.v1alpha1.SelfSubjectReview.Type:
self = .authenticationV1Alpha1SelfSubjectReview
case is authorization.v1.LocalSubjectAccessReview.Type:
Expand All @@ -120,6 +128,8 @@ public extension GroupVersionKind {
self = .batchV1Job
case is certificates.v1.CertificateSigningRequest.Type:
self = .certificatesV1CertificateSigningRequest
case is certificates.v1alpha1.ClusterTrustBundle.Type:
self = .certificatesV1Alpha1ClusterTrustBundle
case is coordination.v1.Lease.Type:
self = .coordinationV1Lease
case is discovery.v1.EndpointSlice.Type:
Expand All @@ -144,6 +154,8 @@ public extension GroupVersionKind {
self = .networkingV1NetworkPolicy
case is networking.v1alpha1.ClusterCIDR.Type:
self = .networkingV1Alpha1ClusterCIDR
case is networking.v1alpha1.IPAddress.Type:
self = .networkingV1Alpha1IPAddress
case is node.v1.RuntimeClass.Type:
self = .nodeV1RuntimeClass
case is policy.v1.PodDisruptionBudget.Type:
Expand All @@ -156,14 +168,14 @@ public extension GroupVersionKind {
self = .rbacV1Role
case is rbac.v1.RoleBinding.Type:
self = .rbacV1RoleBinding
case is resource.v1alpha1.PodScheduling.Type:
self = .resourceV1Alpha1PodScheduling
case is resource.v1alpha1.ResourceClaim.Type:
self = .resourceV1Alpha1ResourceClaim
case is resource.v1alpha1.ResourceClaimTemplate.Type:
self = .resourceV1Alpha1ResourceClaimTemplate
case is resource.v1alpha1.ResourceClass.Type:
self = .resourceV1Alpha1ResourceClass
case is resource.v1alpha2.PodSchedulingContext.Type:
self = .resourceV1Alpha2PodSchedulingContext
case is resource.v1alpha2.ResourceClaim.Type:
self = .resourceV1Alpha2ResourceClaim
case is resource.v1alpha2.ResourceClaimTemplate.Type:
self = .resourceV1Alpha2ResourceClaimTemplate
case is resource.v1alpha2.ResourceClass.Type:
self = .resourceV1Alpha2ResourceClass
case is scheduling.v1.PriorityClass.Type:
self = .schedulingV1PriorityClass
case is storage.v1.CSIDriver.Type:
Expand All @@ -176,8 +188,6 @@ public extension GroupVersionKind {
self = .storageV1StorageClass
case is storage.v1.VolumeAttachment.Type:
self = .storageV1VolumeAttachment
case is storage.v1beta1.CSIStorageCapacity.Type:
self = .storageV1Beta1CSIStorageCapacity
default:
return nil
}
Expand Down
12 changes: 8 additions & 4 deletions Sources/Model/GroupVersionKind+Meta.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

///
/// Generated by Swiftkube:ModelGen
/// Kubernetes v1.26.4
/// Kubernetes v1.28.0
///

import Foundation
Expand Down Expand Up @@ -83,12 +83,12 @@ public extension GroupVersionKind {
return true
case "StatefulSet":
return true
case "SelfSubjectReview":
return false
case "TokenRequest":
return true
case "TokenReview":
return false
case "SelfSubjectReview":
return false
case "LocalSubjectAccessReview":
return true
case "SelfSubjectAccessReview":
Expand All @@ -105,6 +105,8 @@ public extension GroupVersionKind {
return true
case "CertificateSigningRequest":
return false
case "ClusterTrustBundle":
return false
case "Lease":
return true
case "EndpointSlice":
Expand All @@ -123,6 +125,8 @@ public extension GroupVersionKind {
return true
case "ClusterCIDR":
return false
case "IPAddress":
return false
case "RuntimeClass":
return false
case "PodDisruptionBudget":
Expand All @@ -135,7 +139,7 @@ public extension GroupVersionKind {
return true
case "RoleBinding":
return true
case "PodScheduling":
case "PodSchedulingContext":
return true
case "ResourceClaim":
return true
Expand Down
Loading

0 comments on commit 4b483a3

Please sign in to comment.