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
Allow to update status of related objects #298
Comments
Note: This |
hi @sathieu , as I understand The issue I see here metcontroller does not own related objects. How those |
I think none of the existing primitive in metacontroller ( |
(NB: I've updated the description to my real use-case: Ingress to Istio) Hi @grzesuav,
Those are mostly created by Helm charts from FLOSS projects.
I thought about a workaround: Use to composite controllers. One having the |
The thing is, |
@grzesuav Digging deeper, my usecase is as follow: Given an I've tried the following:
Any other idea? I think I'll end up by writing an operator from scratch 😱. |
@sathieu I am still checking, but it seems that I wonder if you can do sth like apiVersion: examples.metacontroller.io/v1alpha1
kind: IngressMaker
metadata:
name: someName
spec:
sourceIngress: ingrsss
sourceIngressNamespace: someNamespace
sourceService: nameOfTheService with the ---
apiVersion: metacontroller.k8s.io/v1alpha1
kind: CompositeController
metadata:
name: ingress-maker-controller
spec:
generateSelector: true
parentResource:
apiVersion: examples.metacontroller.io/v1alpha1
resource: IngressMaker
childResources:
- apiVersion: istio
resource: VirtualService
updateStrategy:
method: InPlace
- apiVersion: istio
resource: Gateway
updateStrategy:
method: InPlace
hooks:
sync:
webhook:
url: http://globalconfigmap-controller.metacontroller/sync
customize:
webhook:
url: http://globalconfigmap-controller.metacontroller/customize
Do you see any issues here ? You may want to take a look at https://github.com/metacontroller/metacontroller/tree/master/examples/globalconfigmap |
I managed to handle my usecase:
So, I'm able to update I'm now hitting another limit, I want to access |
I need to consider if this is something we want to implement, related objects are owned by other controllers and the purpose was to have them to calculate the state of children etc. I am afraid that this feature can lead to undesirable behavior, like controllers constantly changing the related objects |
This is somewhat a follower of #236.
I have a
CompositeController
which:Ingress2IstioGenerator
resource (which describes in which namespace gateways and virtualservices should be generated, and selector for Ingresses)Ingress
Gateway
andVirtualService
Feature request: I want to update the ingress
status
(to fillstatus.loadBalancer.ingress: [ip: '10.20.30.40']
).Alternative:
The text was updated successfully, but these errors were encountered: