This template provides a few things to kick start a project that interacts with the kubernetes api. In it's current form when you run npm start
the project will connect to the kubernetes cluster set as your default context and build a deduplicated list of the container image information and print it to the terminal.
- Kubernetes-client/client-node
- Jest
- Github Action CI
- Renovate
- Eslint (with standard config)
- Typescript
- InversifyJS
- Sonar Project File
- Dockerfile
The following scripts are included in the NPM project configuration
lint
lints the source code using eslintlint:fix
automatically fixes any lint errors that can be fixed automaticallytest
uses jest to run test suitesbuild
compiles the typescript into js and places it in thedist
folderstart
runs the compiled js indist
This is meant to include service abstractions, ideally each service should provide an interface/contract exposing the functionality that other things in the application need.
Currently this is setup to house factories or other items to provide instances of third party things/modules that will be bound by the InversifyJS IoC container so they can be injected into other things with @inject()
This houses interfaces/models with little to no logic, the intent is these items can be passed/returned from the abstractions in services and avoid tight coupling to third party types.
This defines symbols for each type that will be configured in the IoC container, these are used to identify the type when using @inject(TYPES.Services.Kubernetes)
for example. For more information refer to inversify.
This file maps the types defined in ./src/types.ts
to interface types. For more information refer to inversify.
- Update Sonar Project Properties For Sonar Cloud
- Add SONARQUBE_KEY secret to your repo or org if not already present
- Point badges in README.md to correct location for you repo
- Update renovate.json to meet desired behavior for your needs, docs can be found here.
- Update this readme to reflect your project name and info