Skip to content

Commit

Permalink
Replace pulumi-java-gen with pulumi package gen-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Frassle committed Aug 5, 2024
1 parent 93b4649 commit 942edc8
Show file tree
Hide file tree
Showing 3,669 changed files with 3,675 additions and 3,671 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 3 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ OPENAPI_FILE := ${OPENAPI_DIR}/swagger-${KUBE_VERSION}.json
SCHEMA_FILE := provider/cmd/pulumi-resource-kubernetes/schema.json
GOPATH := $(shell go env GOPATH)

JAVA_GEN := pulumi-java-gen
JAVA_GEN_VERSION := v0.13.0

WORKING_DIR := $(shell pwd)

# Override during CI using `make [TARGET] PROVIDER_VERSION=""` or by setting a PROVIDER_VERSION environment variable
Expand Down Expand Up @@ -96,16 +93,13 @@ python_sdk::
PYPI_VERSION=$(PYPI_VERSION) ./scripts/build_python_sdk.sh

java_sdk:: PACKAGE_VERSION := $(shell pulumictl convert-version --language generic -v "$(VERSION_GENERIC)")
java_sdk:: bin/pulumi-java-gen
$(WORKING_DIR)/bin/$(JAVA_GEN) generate --schema $(SCHEMA_FILE) --overlay provider/pkg/gen/java-templates \
--out sdk/java --build gradle-nexus
java_sdk::
pulumi package gen-sdk --language java $(SCHEMA_FILE) \
--overlays provider/pkg/gen/java-templates --out sdk
cd ${PACKDIR}/java/ && \
echo "module fake_java_module // Exclude this directory from Go tools\n\ngo 1.17" > go.mod && \
gradle --console=plain build

bin/pulumi-java-gen::
$(shell pulumictl download-binary -n pulumi-language-java -v $(JAVA_GEN_VERSION) -r pulumi/pulumi-java)

.PHONY: build
build:: k8sgen openapi_file schema k8sprovider nodejs_sdk go_sdk python_sdk dotnet_sdk java_sdk

Expand Down
5 changes: 5 additions & 0 deletions provider/cmd/pulumi-resource-kubernetes/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,15 @@
"respectSchemaVersion": true
},
"java": {
"buildFiles": "gradle",
"dependencies": {
"com.google.code.findbugs:jsr305": "3.0.2",
"com.google.code.gson:gson": "2.8.9",
"com.google.guava:guava": "32.1.2-jre",
"com.pulumi:pulumi": "0.13.0",
"net.bytebuddy:byte-buddy": "1.14.15"
},
"gradleNexusPublishPluginVersion": "1.1.0",
"packages": {
"admissionregistration.k8s.io/v1": "admissionregistration.v1",
"admissionregistration.k8s.io/v1alpha1": "admissionregistration.v1alpha1",
Expand Down
11 changes: 8 additions & 3 deletions provider/pkg/gen/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,15 @@ additional information about using Server-Side Apply to manage Kubernetes resour
})

pkg.Language["java"] = rawMessage(map[string]any{
"packages": javaPackages,
"buildFiles": "gradle",
"gradleNexusPublishPluginVersion": "1.1.0",
"packages": javaPackages,
"dependencies": map[string]string{
"net.bytebuddy:byte-buddy": "1.14.15",
"com.google.guava:guava": "32.1.2-jre",
"net.bytebuddy:byte-buddy": "1.14.15",
"com.google.guava:guava": "32.1.2-jre",
"com.google.code.gson:gson": "2.8.9",
"com.google.code.findbugs:jsr305": "3.0.2",
"com.pulumi:pulumi": "0.13.0",
},
})

Expand Down
2 changes: 1 addition & 1 deletion sdk/java/src/main/java/com/pulumi/kubernetes/Config.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes;
Expand Down
2 changes: 1 addition & 1 deletion sdk/java/src/main/java/com/pulumi/kubernetes/Provider.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***

Check failure on line 1 in sdk/java/src/main/java/com/pulumi/kubernetes/Provider.java

View workflow job for this annotation

GitHub Actions / build_sdks (java)

Unexpected file modified

File modified: @@ -38,14 +38,7 @@ public class Provider extends com.pulumi.resources.ProviderResource { * @param options A bag of options that control this resource's behavior. */ public Provider(String name, @nullable ProviderArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - super("kubernetes", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); - } - - private static ProviderArgs makeArgs(@nullable ProviderArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - if (options != null && options.getUrn().isPresent()) { - return null; - } - return args == null ? ProviderArgs.Empty : args; + super("kubernetes", name, args == null ? ProviderArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@nullable com.pulumi.resources.CustomResourceOptions options, @nullable Output<String> id) {
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***

Check failure on line 1 in sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.java

View workflow job for this annotation

GitHub Actions / build_sdks (java)

Unexpected file modified

File modified: @@ -101,17 +101,14 @@ public class MutatingWebhookConfiguration extends com.pulumi.resources.CustomRes * @param options A bag of options that control this resource's behavior. */ public MutatingWebhookConfiguration(String name, @nullable MutatingWebhookConfigurationArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - super("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); + super("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration", name, makeArgs(args), makeResourceOptions(options, Codegen.empty())); } private MutatingWebhookConfiguration(String name, Output<String> id, @nullable com.pulumi.resources.CustomResourceOptions options) { super("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration", name, null, makeResourceOptions(options, id)); } - private static MutatingWebhookConfigurationArgs makeArgs(@nullable MutatingWebhookConfigurationArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - if (options != null && options.getUrn().isPresent()) { - return null; - } + private static MutatingWebhookConfigurationArgs makeArgs(@nullable MutatingWebhookConfigurationArgs args) { var builder = args == null ? MutatingWebhookConfigurationArgs.builder() : MutatingWebhookConfigurationArgs.builder(args); return builder .apiVersion("admissionregistration.k8s.io/v1")
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***

Check failure on line 1 in sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.java

View workflow job for this annotation

GitHub Actions / build_sdks (java)

Unexpected file modified

File modified: @@ -100,17 +100,14 @@ public class MutatingWebhookConfigurationList extends com.pulumi.resources.Custo * @param options A bag of options that control this resource's behavior. */ public MutatingWebhookConfigurationList(String name, MutatingWebhookConfigurationListArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - super("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); + super("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList", name, makeArgs(args), makeResourceOptions(options, Codegen.empty())); } private MutatingWebhookConfigurationList(String name, Output<String> id, @nullable com.pulumi.resources.CustomResourceOptions options) { super("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList", name, null, makeResourceOptions(options, id)); } - private static MutatingWebhookConfigurationListArgs makeArgs(MutatingWebhookConfigurationListArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - if (options != null && options.getUrn().isPresent()) { - return null; - } + private static MutatingWebhookConfigurationListArgs makeArgs(MutatingWebhookConfigurationListArgs args) { var builder = args == null ? MutatingWebhookConfigurationListArgs.builder() : MutatingWebhookConfigurationListArgs.builder(args); return builder .apiVersion("admissionregistration.k8s.io/v1")
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***

Check failure on line 1 in sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.java

View workflow job for this annotation

GitHub Actions / build_sdks (java)

Unexpected file modified

File modified: @@ -108,17 +108,14 @@ public class MutatingWebhookConfigurationPatch extends com.pulumi.resources.Cust * @param options A bag of options that control this resource's behavior. */ public MutatingWebhookConfigurationPatch(String name, @nullable MutatingWebhookConfigurationPatchArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - super("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationPatch", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); + super("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationPatch", name, makeArgs(args), makeResourceOptions(options, Codegen.empty())); } private MutatingWebhookConfigurationPatch(String name, Output<String> id, @nullable com.pulumi.resources.CustomResourceOptions options) { super("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationPatch", name, null, makeResourceOptions(options, id)); } - private static MutatingWebhookConfigurationPatchArgs makeArgs(@nullable MutatingWebhookConfigurationPatchArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - if (options != null && options.getUrn().isPresent()) { - return null; - } + private static MutatingWebhookConfigurationPatchArgs makeArgs(@nullable MutatingWebhookConfigurationPatchArgs args) { var builder = args == null ? MutatingWebhookConfigurationPatchArgs.builder() : MutatingWebhookConfigurationPatchArgs.builder(args); return builder .apiVersion("admissionregistration.k8s.io/v1")
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***

Check failure on line 1 in sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/ValidatingAdmissionPolicy.java

View workflow job for this annotation

GitHub Actions / build_sdks (java)

Unexpected file modified

File modified: @@ -117,17 +117,14 @@ public class ValidatingAdmissionPolicy extends com.pulumi.resources.CustomResour * @param options A bag of options that control this resource's behavior. */ public ValidatingAdmissionPolicy(String name, @nullable ValidatingAdmissionPolicyArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); + super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicy", name, makeArgs(args), makeResourceOptions(options, Codegen.empty())); } private ValidatingAdmissionPolicy(String name, Output<String> id, @nullable com.pulumi.resources.CustomResourceOptions options) { super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicy", name, null, makeResourceOptions(options, id)); } - private static ValidatingAdmissionPolicyArgs makeArgs(@nullable ValidatingAdmissionPolicyArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - if (options != null && options.getUrn().isPresent()) { - return null; - } + private static ValidatingAdmissionPolicyArgs makeArgs(@nullable ValidatingAdmissionPolicyArgs args) { var builder = args == null ? ValidatingAdmissionPolicyArgs.builder() : ValidatingAdmissionPolicyArgs.builder(args); return builder .apiVersion("admissionregistration.k8s.io/v1")
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***

Check failure on line 1 in sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBinding.java

View workflow job for this annotation

GitHub Actions / build_sdks (java)

Unexpected file modified

File modified: @@ -105,17 +105,14 @@ public class ValidatingAdmissionPolicyBinding extends com.pulumi.resources.Custo * @param options A bag of options that control this resource's behavior. */ public ValidatingAdmissionPolicyBinding(String name, @nullable ValidatingAdmissionPolicyBindingArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicyBinding", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); + super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicyBinding", name, makeArgs(args), makeResourceOptions(options, Codegen.empty())); } private ValidatingAdmissionPolicyBinding(String name, Output<String> id, @nullable com.pulumi.resources.CustomResourceOptions options) { super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicyBinding", name, null, makeResourceOptions(options, id)); } - private static ValidatingAdmissionPolicyBindingArgs makeArgs(@nullable ValidatingAdmissionPolicyBindingArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - if (options != null && options.getUrn().isPresent()) { - return null; - } + private static ValidatingAdmissionPolicyBindingArgs makeArgs(@nullable ValidatingAdmissionPolicyBindingArgs args) { var builder = args == null ? ValidatingAdmissionPolicyBindingArgs.builder() : ValidatingAdmissionPolicyBindingArgs.builder(args); return builder .apiVersion("admissionregistration.k8s.io/v1")
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***

Check failure on line 1 in sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.java

View workflow job for this annotation

GitHub Actions / build_sdks (java)

Unexpected file modified

File modified: @@ -100,17 +100,14 @@ public class ValidatingAdmissionPolicyBindingList extends com.pulumi.resources.C * @param options A bag of options that control this resource's behavior. */ public ValidatingAdmissionPolicyBindingList(String name, @nullable ValidatingAdmissionPolicyBindingListArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicyBindingList", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); + super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicyBindingList", name, makeArgs(args), makeResourceOptions(options, Codegen.empty())); } private ValidatingAdmissionPolicyBindingList(String name, Output<String> id, @nullable com.pulumi.resources.CustomResourceOptions options) { super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicyBindingList", name, null, makeResourceOptions(options, id)); } - private static ValidatingAdmissionPolicyBindingListArgs makeArgs(@nullable ValidatingAdmissionPolicyBindingListArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - if (options != null && options.getUrn().isPresent()) { - return null; - } + private static ValidatingAdmissionPolicyBindingListArgs makeArgs(@nullable ValidatingAdmissionPolicyBindingListArgs args) { var builder = args == null ? ValidatingAdmissionPolicyBindingListArgs.builder() : ValidatingAdmissionPolicyBindingListArgs.builder(args); return builder .apiVersion("admissionregistration.k8s.io/v1")
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***

Check failure on line 1 in sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingPatch.java

View workflow job for this annotation

GitHub Actions / build_sdks (java)

Unexpected file modified

File modified: @@ -112,17 +112,14 @@ public class ValidatingAdmissionPolicyBindingPatch extends com.pulumi.resources. * @param options A bag of options that control this resource's behavior. */ public ValidatingAdmissionPolicyBindingPatch(String name, @nullable ValidatingAdmissionPolicyBindingPatchArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicyBindingPatch", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); + super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicyBindingPatch", name, makeArgs(args), makeResourceOptions(options, Codegen.empty())); } private ValidatingAdmissionPolicyBindingPatch(String name, Output<String> id, @nullable com.pulumi.resources.CustomResourceOptions options) { super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicyBindingPatch", name, null, makeResourceOptions(options, id)); } - private static ValidatingAdmissionPolicyBindingPatchArgs makeArgs(@nullable ValidatingAdmissionPolicyBindingPatchArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - if (options != null && options.getUrn().isPresent()) { - return null; - } + private static ValidatingAdmissionPolicyBindingPatchArgs makeArgs(@nullable ValidatingAdmissionPolicyBindingPatchArgs args) { var builder = args == null ? ValidatingAdmissionPolicyBindingPatchArgs.builder() : ValidatingAdmissionPolicyBindingPatchArgs.builder(args); return builder .apiVersion("admissionregistration.k8s.io/v1")
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***

Check failure on line 1 in sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.java

View workflow job for this annotation

GitHub Actions / build_sdks (java)

Unexpected file modified

File modified: @@ -100,17 +100,14 @@ public class ValidatingAdmissionPolicyList extends com.pulumi.resources.CustomRe * @param options A bag of options that control this resource's behavior. */ public ValidatingAdmissionPolicyList(String name, @nullable ValidatingAdmissionPolicyListArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicyList", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); + super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicyList", name, makeArgs(args), makeResourceOptions(options, Codegen.empty())); } private ValidatingAdmissionPolicyList(String name, Output<String> id, @nullable com.pulumi.resources.CustomResourceOptions options) { super("kubernetes:admissionregistration.k8s.io/v1:ValidatingAdmissionPolicyList", name, null, makeResourceOptions(options, id)); } - private static ValidatingAdmissionPolicyListArgs makeArgs(@nullable ValidatingAdmissionPolicyListArgs args, @nullable com.pulumi.resources.CustomResourceOptions options) { - if (options != null && options.getUrn().isPresent()) { - return null; - } + private static ValidatingAdmissionPolicyListArgs makeArgs(@nullable ValidatingAdmissionPolicyListArgs args) { var builder = args == null ? ValidatingAdmissionPolicyListArgs.builder() : ValidatingAdmissionPolicyListArgs.builder(args); return builder .apiVersion("admissionregistration.k8s.io/v1")
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.kubernetes.admissionregistration.v1.inputs;
Expand Down
Loading

0 comments on commit 942edc8

Please sign in to comment.