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

Feat/o2k improvements #3396

Merged
merged 13 commits into from May 20, 2021
Merged

Conversation

dimitropoulos
Copy link
Contributor

A recent PR (#3340) on inso went through a lot of iterations to try and find a suitable solution to the problem, and during that time there were some small things fixed along the way. I pulled those things out of the work on that PR and collected them here in the interest of cleanliness (but also because it looks like that PR may not merge super soon).

Best to read commit by commit, I tried to keep it very clean and document any changes where necessary.

Copy link
Contributor

@develohpanda develohpanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to QA so not approving as yet but code review checks out

for better or for worse, until we upgrade `YAML` (it's now written in TypeScript) we should probably aim for consistency.
it would be FAR preferable to use an object with the arguments instead because then we don't have to fall into all the traps that come with overloads, but I am avoiding changing the actual call signature of these function.
we had everything in place for the rest of the build pipeline to consume these types, but were missing the main exports at the root index.ts file
evidently, this data is useful for the usage of o2k, therefore o2k should be the thing exporting it.
when first naming this, I didn't have much more context than the property name (documents), so after taking a look,  it's clear that these are kubernetes manifests
I will return to this, and so I'm leaving it here in a commit rather than squashing it out, but I can't see a way to get it to work without changing the signature in a big way.
part of the motivation for this is that there are significant things in common between the two kinds of configs, making them closer in form is therefore ideal.
Copy link
Contributor

@develohpanda develohpanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dimitropoulos dimitropoulos merged commit 3605bc1 into Kong:develop May 20, 2021
@dimitropoulos dimitropoulos deleted the feat/o2k-improvements branch May 20, 2021 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants