Giter Site home page Giter Site logo

Comments (6)

davidffrench avatar davidffrench commented on August 26, 2024

This is not working for deployments for me either. I could be doing something wrong with the setup. The informer looks to be setup correctly.

Syncer Logs

I0510 23:19:14.912097   36113 main.go:117] Set up informer for apps/v1, Resource=deployments
I0510 23:19:15.702204   36113 main.go:126] Starting workers

kcp logs

DEBUG: key=/registry/apps/deployments/admin willExtractCluster=false

I have added a breakpoint to https://github.com/kcp-dev/kcp/blob/main/pkg/syncer/syncer.go#L34 and it is never called when adding a new deployment resource

from kcp.

davidfestal avatar davidfestal commented on August 26, 2024

Just a dummy question: did you add the cluster label to your deployment, with the name of your physical cluster ?

from kcp.

davidfestal avatar davidfestal commented on August 26, 2024

I just tested locally and it works on my side with deployments

from kcp.

davidffrench avatar davidffrench commented on August 26, 2024

@davidfestal Yes, I have the label added to my resource.

$ kubectl get clusters
NAME    AGE
local   16h
metadata:
  ...
  labels:
    kcp.dev/cluster: local
spec:

from kcp.

davidfestal avatar davidfestal commented on August 26, 2024

Oh, it seems the label name in the implementation is simply cluster, which should probably be changed to something like you added.

from kcp.

davidffrench avatar davidffrench commented on August 26, 2024

Agreed @davidfestal . It is listed in the docs here as kcp.dev/cluster https://github.com/kcp-dev/kcp/tree/main/contrib/demo#object-syncer

Issue created - #70 and closing this issue. Thanks for the help David

from kcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.