Skip to content

Deprecate DisableLua in favor of a new EnableLua #7954

@rudrakhp

Description

@rudrakhp

DisableLua is exposed via gateway spec today which enables Lua policies by default:

// DisableLua determines if Lua EnvoyExtensionPolicies should be disabled.
// If set to true, the Lua EnvoyExtensionPolicy feature will be disabled.
DisableLua bool `json:"disableLua"`

Deprecate DisableLua in favor of a new EnableLua option that defaults to disabling Lua policies:

  • Add a CEL validation on the EnvoyGateway API to ensure only one of DisableLua or EnableLua is set. Both not set should be acceptable to CEL.
  • Emit a warning status on the EnvoyGateway resource if both DisableLua and EnableLua are not set, suggesting to use EnableLua.
  • Emit a warning status on the EnvoyGateway resource if DisableLua is used, suggesting to use EnableLua.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions