feat: adjust sample to mvp #1
Vendored
-3
@@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,3 +39,19 @@ The ProxyProvider will be created in Authentik, but will not be assigned to an o
|
|||||||
## Versioning
|
## Versioning
|
||||||
|
|
||||||
As soon as the operator covers an entire use case, the version will be raised to v1 and follow default versioning rules. Before that, the version will be v1alpha1.
|
As soon as the operator covers an entire use case, the version will be raised to v1 and follow default versioning rules. Before that, the version will be v1alpha1.
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
### Guidelines & Tips
|
||||||
|
|
||||||
|
- Only do a single reconciliation at a time and then return.
|
||||||
|
- This is because your references from the k8s API get stale after each update.
|
||||||
|
- Whenever you update a resource, k8s API will send a new event to your controller, which will trigger a new reconciliation.
|
||||||
|
- The API will periodically send a resource to the controller for re-syncing, giving the controller a chance to reconcile the state with the outside world.
|
||||||
|
- Use finalizers to ensure that the controller gets a chance to reconcile the state with the outside world before the object is deleted. If no finalizer is present, the object is deleted immediately without the controller seeing it.
|
||||||
|
- Use the resource's state to keep track of the current state of the outside world, e.g. identifiers of external resources, etc.
|
||||||
|
|
||||||
|
### References
|
||||||
|
|
||||||
|
- [Extend Kubernetes](https://kubernetes.io/docs/concepts/extend-kubernetes/#api-extensions)
|
||||||
|
- [Example Controller Implementation](https://github.com/kubernetes/sample-controller)
|
||||||
|
|||||||
Reference in New Issue
Block a user