GithubHelp home page GithubHelp logo

Comments (2)

zshi-redhat avatar zshi-redhat commented on June 16, 2024

@MichalGuzieniuk could you capture the network-resources-injector log when above issue happens?

from network-resources-injector.

MichalGuzieniuk avatar MichalGuzieniuk commented on June 16, 2024

Logs after cluster initialization

I0409 12:10:02.188300       1 main.go:69] starting mutating admission controller for network resources injection
I0409 12:10:02.189260       1 tlsutils.go:120] added client CA to cert pool from path '/var/run/secrets/kubernetes.io/serviceaccount/ca.crt'
I0409 12:10:02.189303       1 tlsutils.go:122] added '1' client CA(s) to cert pool

Additional log after ConfigMap consumption

I0409 12:12:32.252907       1 webhook.go:918] Initializing user-defined injections with key: customInjection, value: {"op": "add", "path": "/metadata/annotations", "value": {"top-secret": "password"}}

Logs after POD creation

I0409 12:14:04.363035       1 webhook.go:679] Received mutation request
I0409 12:14:04.367038       1 webhook.go:652] search v1.multus-cni.io/default-network in original pod annotations
I0409 12:14:04.367054       1 webhook.go:659] search v1.multus-cni.io/default-network in user-defined injections
I0409 12:14:04.367061       1 webhook.go:673] v1.multus-cni.io/default-network is not found in either pod annotations or user-defined injections
I0409 12:14:04.367072       1 webhook.go:652] search k8s.v1.cni.cncf.io/networks in original pod annotations
I0409 12:14:04.367079       1 webhook.go:655] k8s.v1.cni.cncf.io/networks is defined in original pod annotations
I0409 12:14:04.367098       1 webhook.go:256] 'foo-network' is not in JSON format: invalid character 'o' in literal false (expecting 'a')... trying to parse as comma separated network selections list
I0409 12:14:04.375919       1 webhook.go:354] network attachment definition 'default/foo-network' found
I0409 12:14:04.375948       1 webhook.go:361] resource 'example.com/foo' needs to be requested for network 'default/foo-network'
I0409 12:14:04.375962       1 webhook.go:765] honor-resources=false
I0409 12:14:04.375995       1 webhook.go:775] injectHugepageDownApi=true
I0409 12:14:04.376016       1 webhook.go:833] patch after all mutations: [{add /spec/containers/0/resources/requests map[]} {add /spec/containers/0/resources/limits map[]} {add /spec/containers/0/resources/requests/example.com~1foo {{1 0} {<nil>}  DecimalSI}} {add /spec/containers/0/resources/limits/example.com~1foo {{1 0} {<nil>}  DecimalSI}} {add /spec/containers/0/volumeMounts/- {podnetinfo false /etc/podnetinfo  <nil> }} {add /spec/volumes/- {podnetinfo {nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil &DownwardAPIVolumeSource{Items:[]DownwardAPIVolumeFile{DownwardAPIVolumeFile{Path:labels,FieldRef:&ObjectFieldSelector{APIVersion:,FieldPath:metadata.labels,},ResourceFieldRef:nil,Mode:nil,},DownwardAPIVolumeFile{Path:annotations,FieldRef:&ObjectFieldSelector{APIVersion:,FieldPath:metadata.annotations,},ResourceFieldRef:nil,Mode:nil,},},DefaultMode:nil,} nil nil nil nil nil nil nil nil nil nil nil nil}}} {add /metadata/annotations map[top-secret:password]}]
I0409 12:14:04.376500       1 webhook.go:396] sending response to the Kubernetes API server

from network-resources-injector.

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.