-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove cert-manager support (#4085)
BREAKING CHANGE: The previously deprecated `cert-manager` feature has now been fully removed. Check the documentation for instructions on how to manage certificates in your project.
- Loading branch information
Showing
11 changed files
with
1 addition
and
7,437 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ export interface ProviderSecretRef { | |
namespace: string | ||
} | ||
|
||
export type TlsManager = "cert-manager" | "manual" | ||
export type TlsManager = "manual" | ||
export type LetsEncryptServerType = "letsencrypt-staging" | "letsencrypt-prod" | ||
export type AcmeChallengeType = "HTTP-01" | ||
export type IssuerType = "acme" | ||
|
@@ -338,18 +338,6 @@ const tlsCertificateSchema = () => | |
secretRef: secretRef | ||
.description("A reference to the Kubernetes secret that contains the TLS certificate and key for the domain.") | ||
.example({ name: "my-tls-secret", namespace: "default" }), | ||
managedBy: joi | ||
.string() | ||
.description( | ||
dedent` | ||
Set to \`cert-manager\` to configure [cert-manager](https://github.com/jetstack/cert-manager) to manage this | ||
certificate. See our | ||
[cert-manager integration guide](https://docs.garden.io/advanced/cert-manager-integration) for details. | ||
` | ||
) | ||
.allow("cert-manager") | ||
.example("cert-manager") | ||
.meta({ deprecated: "The cert-manager integration is deprecated and will be removed in the 0.13 release" }), | ||
}) | ||
|
||
const buildkitCacheConfigurationSchema = () => | ||
|
@@ -673,59 +661,6 @@ export const kubernetesConfigBase = () => | |
tlsCertificates: joiSparseArray(tlsCertificateSchema()) | ||
.unique("name") | ||
.description("One or more certificates to use for ingress."), | ||
certManager: joi | ||
.object() | ||
.optional() | ||
.keys({ | ||
install: joi | ||
.bool() | ||
.default(false) | ||
.description( | ||
dedent` | ||
Automatically install \`cert-manager\` on initialization. See the | ||
[cert-manager integration guide](https://docs.garden.io/advanced/cert-manager-integration) for details. | ||
` | ||
) | ||
.meta({ deprecated: "The cert-manager integration is deprecated and will be removed in the 0.13 release" }), | ||
email: joi | ||
.string() | ||
.required() | ||
.description("The email to use when requesting Let's Encrypt certificates.") | ||
.example("[email protected]") | ||
.meta({ deprecated: "The cert-manager integration is deprecated and will be removed in the 0.13 release" }), | ||
issuer: joi | ||
.string() | ||
.allow("acme") | ||
.default("acme") | ||
.description("The type of issuer for the certificate (only ACME is supported for now).") | ||
.example("acme") | ||
.meta({ deprecated: "The cert-manager integration is deprecated and will be removed in the 0.13 release" }), | ||
acmeServer: joi | ||
.string() | ||
.allow("letsencrypt-staging", "letsencrypt-prod") | ||
.default("letsencrypt-staging") | ||
.description( | ||
deline`Specify which ACME server to request certificates from. Currently Let's Encrypt staging and prod | ||
servers are supported.` | ||
) | ||
.example("letsencrypt-staging") | ||
.meta({ deprecated: "The cert-manager integration is deprecated and will be removed in the 0.13 release" }), | ||
acmeChallengeType: joi | ||
.string() | ||
.allow("HTTP-01") | ||
.default("HTTP-01") | ||
.description( | ||
deline`The type of ACME challenge used to validate hostnames and generate the certificates | ||
(only HTTP-01 is supported for now).` | ||
) | ||
.example("HTTP-01") | ||
.meta({ deprecated: "The cert-manager integration is deprecated and will be removed in the 0.13 release" }), | ||
}) | ||
.description( | ||
dedent`cert-manager configuration, for creating and managing TLS certificates. See the | ||
[cert-manager guide](https://docs.garden.io/advanced/cert-manager-integration) for details.` | ||
) | ||
.meta({ deprecated: "The cert-manager integration is deprecated and will be removed in the 0.13 release" }), | ||
_systemServices: joiArray(joiIdentifier()).meta({ internal: true }), | ||
systemNodeSelector: joiStringMap(joi.string()) | ||
.description( | ||
|
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
Oops, something went wrong.