Skip to content

Commit

Permalink
Revert "Merge pull request cert-manager#3946 from inteon/fix_kubectl_…
Browse files Browse the repository at this point in the history
…apply"

This reverts commit c7514d9, reversing
changes made to 49cbedf.

Signed-off-by: Jake Sanders <i@am.so-aweso.me>
  • Loading branch information
jakexks committed May 11, 2021
1 parent bd817cc commit 8ca19b2
Show file tree
Hide file tree
Showing 18 changed files with 5,395 additions and 572 deletions.
2,552 changes: 2,070 additions & 482 deletions deploy/crds/crd-challenges.yaml

Large diffs are not rendered by default.

1,672 changes: 1,630 additions & 42 deletions deploy/crds/crd-clusterissuers.yaml

Large diffs are not rendered by default.

1,672 changes: 1,630 additions & 42 deletions deploy/crds/crd-issuers.yaml

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion pkg/apis/acme/v1/types_issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,12 @@ type ACMEChallengeSolverHTTP01Istio struct {
// namespace qualifier is the same as specifying the VirtualService's
// namespace.
// ref: https://github.com/istio/api/blob/24c65c0415b63a6ebca18059c60fc8fccf041e9a/networking/v1beta1/virtual_service.pb.go#L233-L246
// +optional
Gateways []string `json:"gateways,omitempty"`

// Optional pod template used to configure the ACME challenge solver pods
// used for HTTP01 challenges
// +optional
PodTemplate *ACMEChallengeSolverHTTP01IngressPodTemplate `json:"podTemplate,omitempty"`
}

// Used to configure a DNS01 challenge provider to be used when solving DNS01
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/acme/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/apis/acme/v1alpha2/types_issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@ type ACMEChallengeSolverHTTP01Istio struct {
// ref: https://github.com/istio/api/blob/24c65c0415b63a6ebca18059c60fc8fccf041e9a/networking/v1beta1/virtual_service.pb.go#L233-L246
// +optional
Gateways []string `json:"gateways,omitempty"`

// Optional pod template used to configure the ACME challenge solver pods
// used for HTTP01 challenges
// +optional
PodTemplate *ACMEChallengeSolverHTTP01IngressPodTemplate `json:"podTemplate,omitempty"`
}

// Used to configure a DNS01 challenge provider to be used when solving DNS01
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/acme/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion pkg/apis/acme/v1alpha3/types_issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,12 @@ type ACMEChallengeSolverHTTP01Istio struct {
// namespace qualifier is the same as specifying the VirtualService's
// namespace.
// ref: https://github.com/istio/api/blob/24c65c0415b63a6ebca18059c60fc8fccf041e9a/networking/v1beta1/virtual_service.pb.go#L233-L246
// +optional
Gateways []string `json:"gateways,omitempty"`

// Optional pod template used to configure the ACME challenge solver pods
// used for HTTP01 challenges
// +optional
PodTemplate *ACMEChallengeSolverHTTP01IngressPodTemplate `json:"podTemplate,omitempty"`
}

// Used to configure a DNS01 challenge provider to be used when solving DNS01
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/acme/v1alpha3/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion pkg/apis/acme/v1beta1/types_issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,12 @@ type ACMEChallengeSolverHTTP01Istio struct {
// namespace qualifier is the same as specifying the VirtualService's
// namespace.
// ref: https://github.com/istio/api/blob/24c65c0415b63a6ebca18059c60fc8fccf041e9a/networking/v1beta1/virtual_service.pb.go#L233-L246
// +optional
Gateways []string `json:"gateways,omitempty"`

// Optional pod template used to configure the ACME challenge solver pods
// used for HTTP01 challenges
// +optional
PodTemplate *ACMEChallengeSolverHTTP01IngressPodTemplate `json:"podTemplate,omitempty"`
}

// Used to configure a DNS01 challenge provider to be used when solving DNS01
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/acme/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions pkg/internal/apis/acme/types_issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ type ACMEChallengeSolverHTTP01 struct {
// to the specified Istio gateway in order to route requests for
// '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are
// provisioned by cert-manager for each Challenge to be completed.
Istio *ACMEChallengeSolverHTTP01Istio
// +optional
Istio *ACMEChallengeSolverHTTP01Istio `json:"istio,omitempty"`
}

type ACMEChallengeSolverHTTP01Ingress struct {
Expand Down Expand Up @@ -281,15 +282,21 @@ type ACMEChallengeSolverHTTP01IngressObjectMeta struct {

type ACMEChallengeSolverHTTP01Istio struct {
// Optional service type for Kubernetes solver service
ServiceType corev1.ServiceType
// +optional
ServiceType corev1.ServiceType `json:"serviceType,omitempty"`

// The names of the gateways that are used to generate the virtualservice
// that configures the HTTP01 challenge routes.
// `<gateway namespace>/<gateway name>`; specifying a gateway with no
// namespace qualifier is the same as specifying the VirtualService's
// namespace.
// ref: https://github.com/istio/api/blob/24c65c0415b63a6ebca18059c60fc8fccf041e9a/networking/v1beta1/virtual_service.pb.go#L233-L246
Gateways []string
Gateways []string `json:"gateways,omitempty"`

// Optional pod template used to configure the ACME challenge solver pods
// used for HTTP01 challenges
// +optional
PodTemplate *ACMEChallengeSolverHTTP01IngressPodTemplate `json:"podTemplate,omitempty"`
}

// Used to configure a DNS01 challenge provider to be used when solving DNS01
Expand Down
2 changes: 2 additions & 0 deletions pkg/internal/apis/acme/v1/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/internal/apis/acme/v1alpha2/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/internal/apis/acme/v1alpha3/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/internal/apis/acme/v1beta1/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/internal/apis/acme/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/issuer/acme/http/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ func (s *Solver) buildPod(ch *cmacme.Challenge) *corev1.Pod {
if ch.Spec.Solver.HTTP01 != nil {
if ch.Spec.Solver.HTTP01.Ingress != nil {
pod = s.mergePodObjectMetaWithPodTemplate(pod, ch.Spec.Solver.HTTP01.Ingress.PodTemplate)
} else if ch.Spec.Solver.HTTP01.Istio != nil {
pod = s.mergePodObjectMetaWithPodTemplate(pod, ch.Spec.Solver.HTTP01.Istio.PodTemplate)
}
}

Expand Down

0 comments on commit 8ca19b2

Please sign in to comment.