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
import io.kubernetes.client.openapi.models.V1CustomResourceValidation; | |
import io.kubernetes.client.openapi.models.V1CustomResourceValidationBuilder; | |
import io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder; | |
public class JavaClientBug1978 { | |
public static void main(String... args) { | |
V1CustomResourceValidation crdValidation = new V1CustomResourceValidationBuilder() | |
.withOpenAPIV3Schema(new V1JSONSchemaPropsBuilder() | |
.withType("object") | |
// Does not exist: |
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
import java.io.IOException; | |
import io.kubernetes.client.util.Yaml; | |
public class JavaClientBug { | |
public static void main(String... args) throws IOException { | |
Yaml.load("---\n" + | |
"apiVersion: apiextensions.k8s.io/v1\n" + | |
"kind: CustomResourceDefinition\n" + |