-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
schema: Added OpenAPI schema for 1.25.0
- Loading branch information
Showing
39 changed files
with
83,000 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
904 changes: 904 additions & 0 deletions
904
...tes-api/src/api/java/com/marcnuri/yakc/api/networking/v1alpha1/NetworkingV1alpha1Api.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...es-model/src/model/java/com/marcnuri/yakc/model/io/k8s/api/batch/v1/PodFailurePolicy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright 2020 Marc Nuri | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.marcnuri.yakc.model.io.k8s.api.batch.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import java.util.List; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.NonNull; | ||
import lombok.Singular; | ||
import lombok.ToString; | ||
|
||
/** | ||
* PodFailurePolicy describes how failed pods influence the backoffLimit. | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class PodFailurePolicy implements Model { | ||
|
||
|
||
/** | ||
* A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. | ||
*/ | ||
@NonNull | ||
@JsonProperty("rules") | ||
@Singular(value = "addToRules", ignoreNullCollections = true) | ||
private List<PodFailurePolicyRule> rules; | ||
|
||
} | ||
|
64 changes: 64 additions & 0 deletions
64
...a/com/marcnuri/yakc/model/io/k8s/api/batch/v1/PodFailurePolicyOnExitCodesRequirement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Copyright 2020 Marc Nuri | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.marcnuri.yakc.model.io.k8s.api.batch.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import java.util.List; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.NonNull; | ||
import lombok.Singular; | ||
import lombok.ToString; | ||
|
||
/** | ||
* PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check. | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class PodFailurePolicyOnExitCodesRequirement implements Model { | ||
|
||
|
||
/** | ||
* Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template. | ||
*/ | ||
@JsonProperty("containerName") | ||
private String containerName; | ||
|
||
/** | ||
* Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code<br><p> (might be multiple if there are multiple containers not restricted<br><p> by the 'containerName' field) is in the set of specified values.<br><p> - NotIn: the requirement is satisfied if at least one container exit code<br><p> (might be multiple if there are multiple containers not restricted<br><p> by the 'containerName' field) is not in the set of specified values.<br><p> Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.<br><p> <br><p> | ||
*/ | ||
@NonNull | ||
@JsonProperty("operator") | ||
private String operator; | ||
|
||
/** | ||
* Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed. | ||
*/ | ||
@NonNull | ||
@JsonProperty("values") | ||
@Singular(value = "addToValues", ignoreNullCollections = true) | ||
private List<Number> values; | ||
|
||
} | ||
|
55 changes: 55 additions & 0 deletions
55
...a/com/marcnuri/yakc/model/io/k8s/api/batch/v1/PodFailurePolicyOnPodConditionsPattern.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright 2020 Marc Nuri | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.marcnuri.yakc.model.io.k8s.api.batch.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.NonNull; | ||
import lombok.ToString; | ||
|
||
/** | ||
* PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class PodFailurePolicyOnPodConditionsPattern implements Model { | ||
|
||
|
||
/** | ||
* Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True. | ||
*/ | ||
@NonNull | ||
@JsonProperty("status") | ||
private String status; | ||
|
||
/** | ||
* Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. | ||
*/ | ||
@NonNull | ||
@JsonProperty("type") | ||
private String type; | ||
|
||
} | ||
|
61 changes: 61 additions & 0 deletions
61
...odel/src/model/java/com/marcnuri/yakc/model/io/k8s/api/batch/v1/PodFailurePolicyRule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* Copyright 2020 Marc Nuri | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.marcnuri.yakc.model.io.k8s.api.batch.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import java.util.List; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.NonNull; | ||
import lombok.Singular; | ||
import lombok.ToString; | ||
|
||
/** | ||
* PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of OnExitCodes and onPodConditions, but not both, can be used in each rule. | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class PodFailurePolicyRule implements Model { | ||
|
||
|
||
/** | ||
* Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all<br><p> running pods are terminated.<br><p> - Ignore: indicates that the counter towards the .backoffLimit is not<br><p> incremented and a replacement pod is created.<br><p> - Count: indicates that the pod is handled in the default way - the<br><p> counter towards the .backoffLimit is incremented.<br><p> Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.<br><p> <br><p> | ||
*/ | ||
@NonNull | ||
@JsonProperty("action") | ||
private String action; | ||
|
||
@JsonProperty("onExitCodes") | ||
private PodFailurePolicyOnExitCodesRequirement onExitCodes; | ||
|
||
/** | ||
* Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. | ||
*/ | ||
@NonNull | ||
@JsonProperty("onPodConditions") | ||
@Singular(value = "addToOnPodConditions", ignoreNullCollections = true) | ||
private List<PodFailurePolicyOnPodConditionsPattern> onPodConditions; | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.