• Sunghoon Kang's avatar
    Feat: extend gateway trait to set class in spec (#3138) · 665e2b63
    Sunghoon Kang authored
    
    
    * Feat: extend gateway trait to set class in spec
    
    `kubernetes.io/ingress.class` annotation is deprecated in favor of
    `.spec.ingressClassName`. However, there is no way to set it through
    the gateway trait for now.
    
    This commit extends the gateway trait by adding `classInSpec` to
    parameter. Forcing the use of `.spec.ingressClassName` makes sense, but
    some ingress controllers (including old versions) may not recognize
    this field. Therefore, set default value of `classInSpec` to `false`
    for backward compatibility.
    Signed-off-by: default avatarSunghoon Kang <hoon@linecorp.com>
    
    * Chore: update classInSpec usage
    Signed-off-by: default avatarSunghoon Kang <hoon@linecorp.com>
    665e2b63