Skip to content

Commit

Permalink
feat(openapi): regenerate model for k8s.io/apiextensions-apiserver 0.…
Browse files Browse the repository at this point in the history
…32.0

Signed-off-by: Marc Nuri <marc@marcnuri.com>
  • Loading branch information
manusa committed Jan 7, 2025
1 parent f99ef4b commit 7d6e72e
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"kind",
"dryRun",
"gracePeriodSeconds",
"ignoreStoreReadErrorWithClusterBreakingPotential",
"orphanDependents",
"preconditions",
"propagationPolicy"
Expand Down Expand Up @@ -62,6 +63,8 @@ public class DeleteOptions implements Editable<DeleteOptionsBuilder>, Kubernetes
private List<String> dryRun = new ArrayList<>();
@JsonProperty("gracePeriodSeconds")
private Long gracePeriodSeconds;
@JsonProperty("ignoreStoreReadErrorWithClusterBreakingPotential")
private Boolean ignoreStoreReadErrorWithClusterBreakingPotential;
/**
*
* (Required)
Expand All @@ -85,11 +88,12 @@ public class DeleteOptions implements Editable<DeleteOptionsBuilder>, Kubernetes
public DeleteOptions() {
}

public DeleteOptions(String apiVersion, List<String> dryRun, Long gracePeriodSeconds, String kind, Boolean orphanDependents, Preconditions preconditions, String propagationPolicy) {
public DeleteOptions(String apiVersion, List<String> dryRun, Long gracePeriodSeconds, Boolean ignoreStoreReadErrorWithClusterBreakingPotential, String kind, Boolean orphanDependents, Preconditions preconditions, String propagationPolicy) {
super();
this.apiVersion = apiVersion;
this.dryRun = dryRun;
this.gracePeriodSeconds = gracePeriodSeconds;
this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential;
this.kind = kind;
this.orphanDependents = orphanDependents;
this.preconditions = preconditions;
Expand Down Expand Up @@ -137,6 +141,16 @@ public void setGracePeriodSeconds(Long gracePeriodSeconds) {
this.gracePeriodSeconds = gracePeriodSeconds;
}

@JsonProperty("ignoreStoreReadErrorWithClusterBreakingPotential")
public Boolean getIgnoreStoreReadErrorWithClusterBreakingPotential() {
return ignoreStoreReadErrorWithClusterBreakingPotential;
}

@JsonProperty("ignoreStoreReadErrorWithClusterBreakingPotential")
public void setIgnoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) {
this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential;
}

/**
*
* (Required)
Expand Down
3 changes: 2 additions & 1 deletion kubernetes-model-generator/openapi/generator/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module github.com/fabric8io/kubernetes-client/kubernetes-model-generator/openapi/generator

go 1.23
go 1.23.0

toolchain go1.23.1

require (
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"components":{"schemas":{"io.k8s.api.core.v1.PodExecOptions":{"properties":{"apiVersion":{"type":"string"},"command":{"items":{"type":"string"},"type":"array"},"container":{"type":"string"},"kind":{"type":"string"},"stderr":{"type":"boolean"},"stdin":{"type":"boolean"},"stdout":{"type":"boolean"},"tty":{"type":"boolean"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions":{"properties":{"apiVersion":{"type":"string"},"dryRun":{"items":{"type":"string"},"type":"array"},"fieldManager":{"type":"string"},"fieldValidation":{"type":"string"},"kind":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions":{"properties":{"apiVersion":{"type":"string"},"dryRun":{"items":{"type":"string"},"type":"array"},"gracePeriodSeconds":{"format":"int64","type":"integer"},"kind":{"type":"string"},"orphanDependents":{"type":"boolean"},"preconditions":{"$ref":"#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions"},"propagationPolicy":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.GetOptions":{"properties":{"apiVersion":{"type":"string"},"kind":{"type":"string"},"resourceVersion":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.GroupKind":{"properties":{"group":{"type":"string"},"kind":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.ListOptions":{"properties":{"allowWatchBookmarks":{"type":"boolean"},"apiVersion":{"type":"string"},"continue":{"type":"string"},"fieldSelector":{"type":"string"},"kind":{"type":"string"},"labelSelector":{"type":"string"},"limit":{"format":"int64","type":"integer"},"resourceVersion":{"type":"string"},"resourceVersionMatch":{"type":"string"},"sendInitialEvents":{"type":"boolean"},"timeoutSeconds":{"format":"int64","type":"integer"},"watch":{"type":"boolean"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime":{"properties":{"Time":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.PatchOptions":{"properties":{"apiVersion":{"type":"string"},"dryRun":{"items":{"type":"string"},"type":"array"},"fieldManager":{"type":"string"},"fieldValidation":{"type":"string"},"force":{"type":"boolean"},"kind":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions":{"properties":{"resourceVersion":{"type":"string"},"uid":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.RootPaths":{"properties":{"paths":{"items":{"type":"string"},"type":"array"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.TypeMeta":{"properties":{"apiVersion":{"type":"string"},"kind":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.UpdateOptions":{"properties":{"apiVersion":{"type":"string"},"dryRun":{"items":{"type":"string"},"type":"array"},"fieldManager":{"type":"string"},"fieldValidation":{"type":"string"},"kind":{"type":"string"}},"type":"object"}}},"info":{"title":"api-machinery-extra","version":"0.0.0"},"openapi":"3.0.0","paths":{}}
{"components":{"schemas":{"io.k8s.api.core.v1.PodExecOptions":{"properties":{"apiVersion":{"type":"string"},"command":{"items":{"type":"string"},"type":"array"},"container":{"type":"string"},"kind":{"type":"string"},"stderr":{"type":"boolean"},"stdin":{"type":"boolean"},"stdout":{"type":"boolean"},"tty":{"type":"boolean"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.CreateOptions":{"properties":{"apiVersion":{"type":"string"},"dryRun":{"items":{"type":"string"},"type":"array"},"fieldManager":{"type":"string"},"fieldValidation":{"type":"string"},"kind":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions":{"properties":{"apiVersion":{"type":"string"},"dryRun":{"items":{"type":"string"},"type":"array"},"gracePeriodSeconds":{"format":"int64","type":"integer"},"ignoreStoreReadErrorWithClusterBreakingPotential":{"type":"boolean"},"kind":{"type":"string"},"orphanDependents":{"type":"boolean"},"preconditions":{"$ref":"#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions"},"propagationPolicy":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.GetOptions":{"properties":{"apiVersion":{"type":"string"},"kind":{"type":"string"},"resourceVersion":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.GroupKind":{"properties":{"group":{"type":"string"},"kind":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.ListOptions":{"properties":{"allowWatchBookmarks":{"type":"boolean"},"apiVersion":{"type":"string"},"continue":{"type":"string"},"fieldSelector":{"type":"string"},"kind":{"type":"string"},"labelSelector":{"type":"string"},"limit":{"format":"int64","type":"integer"},"resourceVersion":{"type":"string"},"resourceVersionMatch":{"type":"string"},"sendInitialEvents":{"type":"boolean"},"timeoutSeconds":{"format":"int64","type":"integer"},"watch":{"type":"boolean"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime":{"properties":{"Time":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.PatchOptions":{"properties":{"apiVersion":{"type":"string"},"dryRun":{"items":{"type":"string"},"type":"array"},"fieldManager":{"type":"string"},"fieldValidation":{"type":"string"},"force":{"type":"boolean"},"kind":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions":{"properties":{"resourceVersion":{"type":"string"},"uid":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.RootPaths":{"properties":{"paths":{"items":{"type":"string"},"type":"array"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.TypeMeta":{"properties":{"apiVersion":{"type":"string"},"kind":{"type":"string"}},"type":"object"},"io.k8s.apimachinery.pkg.apis.meta.v1.UpdateOptions":{"properties":{"apiVersion":{"type":"string"},"dryRun":{"items":{"type":"string"},"type":"array"},"fieldManager":{"type":"string"},"fieldValidation":{"type":"string"},"kind":{"type":"string"}},"type":"object"}}},"info":{"title":"api-machinery-extra","version":"0.0.0"},"openapi":"3.0.0","paths":{}}
Original file line number Diff line number Diff line change
Expand Up @@ -10006,6 +10006,10 @@
"type": "integer",
"format": "int64"
},
"ignoreStoreReadErrorWithClusterBreakingPotential": {
"description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it",
"type": "boolean"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56860,6 +56860,10 @@
"type": "integer",
"format": "int64"
},
"ignoreStoreReadErrorWithClusterBreakingPotential": {
"description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it",
"type": "boolean"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
Expand Down

0 comments on commit 7d6e72e

Please sign in to comment.