Skip to content

CertificateRefs should NOT be required when TLS mode is "Terminate" #2668

@robscott

Description

@robscott

What happened:
CEL validation currently requires that CertificateRefs are specified when TLS mode is set to "Terminate":

// +kubebuilder:validation:XValidation:message="certificateRefs must be specified when TLSModeType is Terminate",rule="self.mode == 'Terminate' ? size(self.certificateRefs) > 0 : true"

What you expected to happen:
This validation should be removed as implementations should be able to support other ways to configure TLS certificates. (One example would be GKE, but I don't think it is a secure practice to require all TLS certificates to be configured within a cluster).

Thanks to @gauravkghildiyal for catching this one!

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions