Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Added a separate tool to be used with go generate and ease adapter maintenance, namely:
adapter gen
- zero code adapter implementation for a kubernetes resource type. The end result enables kubegraph to create nodes for the target kind with an icon, if provided. Resources with dependencies must still override theCreate
and/orConfigure
methods and implement the proper logic.adapter dep
- injects type aliases and a getter function to retrieve adapter instances for external kinds. This prevents circular references between adapter packages.adapter scheme
- imports and composes schemes with the main decoder scheme to add support for virtually any resource.With the tool above, the adapters received the following changes:
Create
/Configure
is neededNon-breaking
feat
- adds functionality for the userfix
- fixes an issue for the userdocs
- changes to the documentationstyle
- formatting, missing semi colons, etcrefactor
- refactoring production code, eg. renaming a variabletest
- adding missing tests, refactoring testschore
- configuration of lint, IDE, issue template, etcBreaking
feat!
- adds functionality for the user, but changes existing functionalityfix!
- fixes an issue for the user, but changes existing functionalityrefactor!
- changes that replaces existing functionality, eg. changing arity of a functionchore!
- updating build scripts, etc