-
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.
- Loading branch information
Showing
40 changed files
with
8,634 additions
and
1,270 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
Large diffs are not rendered by default.
Oops, something went wrong.
2,257 changes: 1,944 additions & 313 deletions
2,257
.../cert-manager/src/api/java/com/marcnuri/yakc/api/certmanagerio/v1/CertManagerIoV1Api.java
Large diffs are not rendered by default.
Oops, something went wrong.
2,257 changes: 1,944 additions & 313 deletions
2,257
...r/src/api/java/com/marcnuri/yakc/api/certmanagerio/v1alpha2/CertManagerIoV1alpha2Api.java
Large diffs are not rendered by default.
Oops, something went wrong.
2,257 changes: 1,944 additions & 313 deletions
2,257
...r/src/api/java/com/marcnuri/yakc/api/certmanagerio/v1alpha3/CertManagerIoV1alpha3Api.java
Large diffs are not rendered by default.
Oops, something went wrong.
2,257 changes: 1,944 additions & 313 deletions
2,257
...ger/src/api/java/com/marcnuri/yakc/api/certmanagerio/v1beta1/CertManagerIoV1beta1Api.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
56 changes: 56 additions & 0 deletions
56
...c/model/java/com/marcnuri/yakc/model/io/certmanager/v1/CertificateSpecSecretTemplate.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,56 @@ | ||
/* | ||
* 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.certmanager.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import java.util.Map; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Singular; | ||
import lombok.ToString; | ||
|
||
/** | ||
* SecretTemplate defines annotations and labels to be propagated to the Kubernetes Secret when it is created or updated. Once created, labels and annotations are not yet removed from the Secret when they are removed from the template. See https://github.com/jetstack/cert-manager/issues/4292 | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class CertificateSpecSecretTemplate implements Model { | ||
|
||
|
||
/** | ||
* Annotations is a key value map to be copied to the target Kubernetes Secret. | ||
*/ | ||
@JsonProperty("annotations") | ||
@Singular(value = "putInAnnotations", ignoreNullCollections = true) | ||
private Map<String, String> annotations; | ||
|
||
/** | ||
* Labels is a key value map to be copied to the target Kubernetes Secret. | ||
*/ | ||
@JsonProperty("labels") | ||
@Singular(value = "putInLabels", ignoreNullCollections = true) | ||
private Map<String, String> labels; | ||
|
||
} | ||
|
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
55 changes: 55 additions & 0 deletions
55
...om/marcnuri/yakc/model/io/certmanager/v1/ClusterIssuerSpecAcmeHttp01GatewayHTTPRoute.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.certmanager.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import java.util.Map; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Singular; | ||
import lombok.ToString; | ||
|
||
/** | ||
* The Gateway API is a sig-network community API that models service networking in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will create HTTPRoutes with the specified labels in the same namespace as the challenge. This solver is experimental, and fields / behaviour may change in the future. | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class ClusterIssuerSpecAcmeHttp01GatewayHTTPRoute implements Model { | ||
|
||
|
||
/** | ||
* The labels that cert-manager will use when creating the temporary HTTPRoute needed for solving the HTTP-01 challenge. These labels must match the label selector of at least one Gateway. | ||
*/ | ||
@JsonProperty("labels") | ||
@Singular(value = "putInLabels", ignoreNullCollections = true) | ||
private Map<String, String> labels; | ||
|
||
/** | ||
* Optional service type for Kubernetes solver service. Supported values are NodePort or ClusterIP. If unset, defaults to NodePort. | ||
*/ | ||
@JsonProperty("serviceType") | ||
private String serviceType; | ||
|
||
} | ||
|
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
57 changes: 57 additions & 0 deletions
57
...cAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermNamespaceSelector.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,57 @@ | ||
/* | ||
* 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.certmanager.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import java.util.List; | ||
import java.util.Map; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Singular; | ||
import lombok.ToString; | ||
|
||
/** | ||
* A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. This field is alpha-level and is only honored when PodAffinityNamespaceSelector feature is enabled. | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class ClusterIssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermNamespaceSelector implements Model { | ||
|
||
|
||
/** | ||
* matchExpressions is a list of label selector requirements. The requirements are ANDed. | ||
*/ | ||
@JsonProperty("matchExpressions") | ||
@Singular(value = "addToMatchExpressions", ignoreNullCollections = true) | ||
private List<ClusterIssuerSpecAcmeHttp01IngressPodTemplateSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions> matchExpressions; | ||
|
||
/** | ||
* matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. | ||
*/ | ||
@JsonProperty("matchLabels") | ||
@Singular(value = "putInMatchLabels", ignoreNullCollections = true) | ||
private Map<String, String> matchLabels; | ||
|
||
} | ||
|
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
47 changes: 47 additions & 0 deletions
47
...del/java/com/marcnuri/yakc/model/io/certmanager/v1alpha2/ClusterIssuerSpecAcmeHttp01.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,47 @@ | ||
/* | ||
* 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.certmanager.v1alpha2; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.marcnuri.yakc.model.Model; | ||
import com.marcnuri.yakc.model.io.certmanager.v1.ClusterIssuerSpecAcmeHttp01GatewayHTTPRoute; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
|
||
/** | ||
* Configures cert-manager to attempt to complete authorizations by performing the HTTP01 challenge flow. It is not possible to obtain certificates for wildcard domain names (e.g. `*.example.com`) using the HTTP01 challenge mechanism. | ||
*/ | ||
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"}) | ||
@Builder(toBuilder = true, builderClassName = "Builder") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
@ToString | ||
public class ClusterIssuerSpecAcmeHttp01 implements Model { | ||
|
||
|
||
@JsonProperty("gatewayHTTPRoute") | ||
private ClusterIssuerSpecAcmeHttp01GatewayHTTPRoute gatewayHTTPRoute; | ||
|
||
@JsonProperty("ingress") | ||
private ClusterIssuerSpecAcmeHttp01Ingress ingress; | ||
|
||
} | ||
|
Oops, something went wrong.