-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(*): drop Cassandra specifics from plugins (#10833)
* refactor: drop requirment to specify cassandra To support a phased out removal of Cassandra, this commmit removes the validation for Cassandra. Once all migrations associated with Cassandra are removed, the schema for migrations will be updated to not allow any Cassandra fields. This is done to avoid a large patch that removes all migrations in one go. * refactor: drop Cassandra specifics from plugins This patch is part of a series of patches removing Cassandra support from Kong. This patch removes all Cassandra specifics from bundled plugins.
- Loading branch information
Showing
54 changed files
with
108 additions
and
685 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,4 @@ return { | |
]], | ||
}, | ||
cassandra = { | ||
up = [[ | ||
ALTER TABLE acls ADD tags set<text>; | ||
]], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,4 @@ return { | |
END$$; | ||
]], | ||
}, | ||
cassandra = { | ||
up = "", | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,4 @@ return { | |
]], | ||
}, | ||
cassandra = { | ||
up = [[ | ||
ALTER TABLE basicauth_credentials ADD tags set<text>; | ||
]], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,4 @@ return { | |
]], | ||
}, | ||
cassandra = { | ||
up = [[ | ||
ALTER TABLE hmacauth_credentials ADD tags set<text>; | ||
]], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,4 @@ return { | |
]], | ||
}, | ||
cassandra = { | ||
up = [[ | ||
ALTER TABLE jwt_secrets ADD tags set<text>; | ||
]], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,9 +43,4 @@ return { | |
]], | ||
}, | ||
cassandra = { | ||
up = [[ | ||
ALTER TABLE keyauth_credentials ADD tags set<text>; | ||
]], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,4 @@ return { | |
END$$; | ||
]], | ||
}, | ||
cassandra = { | ||
up = [[]], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,9 +43,4 @@ return { | |
]], | ||
}, | ||
cassandra = { | ||
up = [[ | ||
ALTER TABLE oauth2_credentials ADD tags set<text>; | ||
]], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,5 @@ | ||
local operations = require "kong.db.migrations.operations.210_to_211" | ||
|
||
|
||
local plugin_entities = { | ||
{ | ||
name = "oauth2_credentials", | ||
unique_keys = {"client_id"}, | ||
}, | ||
{ | ||
name = "oauth2_authorization_codes", | ||
unique_keys = {"code"}, | ||
}, | ||
{ | ||
name = "oauth2_tokens", | ||
unique_keys = {"access_token", "refresh_token"}, | ||
}, | ||
} | ||
|
||
|
||
return { | ||
postgres = { | ||
up = [[]], | ||
up = [[ SELECT 1 ]], | ||
}, | ||
cassandra = { | ||
up = [[]], | ||
teardown = function(connector) | ||
return operations.clean_cassandra_fields(connector, plugin_entities) | ||
end | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,4 @@ return { | |
END$$; | ||
]], | ||
}, | ||
cassandra = { | ||
up = [[]], | ||
} | ||
} |
Oops, something went wrong.
95a4343
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bazel Build
Docker image available
kong/kong:95a434302352d6ec300cd15f2144c669e53ed2e6
Artifacts available https://github.com/Kong/kong/actions/runs/5005815883