Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing protocols field to plugins #9525

Merged
merged 2 commits into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@

#### Plugins

- Add missing `protocols` field to various plugin schemas.
[#9525](https://github.com/Kong/kong/pull/9525)
- **AWS Lambda**: Fix an issue that is causing inability to
read environment variables in ECS environment.
[#9460](https://github.com/Kong/kong/pull/9460)
Expand Down
3 changes: 3 additions & 0 deletions kong/plugins/azure-functions/schema.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
local typedefs = require "kong.db.schema.typedefs"

return {
name = "azure-functions",
fields = {
{ protocols = typedefs.protocols },
{ config = {
type = "record",
fields = {
Expand Down
3 changes: 3 additions & 0 deletions kong/plugins/grpc-gateway/schema.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
local typedefs = require "kong.db.schema.typedefs"

return {
name = "grpc-gateway",
fields = {
{ protocols = typedefs.protocols },
{ config = {
type = "record",
fields = {
Expand Down
3 changes: 3 additions & 0 deletions kong/plugins/grpc-web/schema.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
local typedefs = require "kong.db.schema.typedefs"

return {
name = "grpc-web",
fields = {
{ protocols = typedefs.protocols },
{ config = {
type = "record",
fields = {
Expand Down
1 change: 1 addition & 0 deletions kong/plugins/pre-function/_schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ return function(plugin_name)
name = plugin_name,
fields = {
{ consumer = typedefs.no_consumer },
{ protocols = typedefs.protocols },
{
config = {
type = "record",
Expand Down
3 changes: 3 additions & 0 deletions kong/plugins/prometheus/schema.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
local typedefs = require "kong.db.schema.typedefs"

local function validate_shared_dict()
if not ngx.shared.prometheus_metrics then
return nil,
Expand All @@ -10,6 +12,7 @@ end
return {
name = "prometheus",
fields = {
{ protocols = typedefs.protocols },
{ config = {
type = "record",
fields = {
Expand Down
2 changes: 2 additions & 0 deletions kong/plugins/proxy-cache/schema.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local strategies = require "kong.plugins.proxy-cache.strategies"
local typedefs = require "kong.db.schema.typedefs"


local ngx = ngx
Expand All @@ -16,6 +17,7 @@ end
return {
name = "proxy-cache",
fields = {
{ protocols = typedefs.protocols },
{ config = {
type = "record",
fields = {
Expand Down
1 change: 1 addition & 0 deletions kong/plugins/request-transformer/schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ table.insert(colon_strings_array_record_plus_uri.fields, uri)
return {
name = "request-transformer",
fields = {
{ protocols = typedefs.protocols },
{ config = {
type = "record",
fields = {
Expand Down
1 change: 1 addition & 0 deletions kong/plugins/session/schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ return {
name = "session",
fields = {
{ consumer = typedefs.no_consumer },
{ protocols = typedefs.protocols },
{ config = {
type = "record",
fields = {
Expand Down
1 change: 1 addition & 0 deletions kong/plugins/zipkin/schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ end
return {
name = "zipkin",
fields = {
{ protocols = typedefs.protocols },
{ config = {
type = "record",
fields = {
Expand Down