Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
feat: allow cert-manager to be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Vibhor Dabas committed Aug 7, 2023
1 parent a21febe commit 3a0e5aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions pkg/phases/certmanager/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ const (
)

func PreInstall(p *platform.Platform) error {
if p.CertManager.Disabled {
return nil
}
client, err := p.Client.GetClientset()
if err != nil {
return err
Expand Down Expand Up @@ -99,6 +102,9 @@ func PreInstall(p *platform.Platform) error {
}

func Install(p *platform.Platform) error {
if p.CertManager.Disabled {
return nil
}
//remove old mutating webhooks
_ = p.DeleteByKind(constants.MutatingWebhookConfiguration, v1.NamespaceAll, WebhookService)

Expand Down
4 changes: 2 additions & 2 deletions pkg/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ type GCP struct {
}

type CertManager struct {
Version string `yaml:"version" json:"version"`

Version string `yaml:"version" json:"version"`
Disabled bool `yaml:"disabled,omitempty" json:"disabled,omitempty"`
// Details of a vault server to use for signing ingress certificates
Vault *VaultClient `yaml:"vault,omitempty" json:"vault,omitempty"`
// Details of a Letsencrypt issuer to use for signing ingress certificates
Expand Down

0 comments on commit 3a0e5aa

Please sign in to comment.