Giter Site home page Giter Site logo

Comments (5)

displague avatar displague commented on September 27, 2024 1

Some Slack conversation about this is available here.

Notably, the --debug option that can be sent to the stack-gcp controller can be added by editing the Stack's deployment (once it is deployed). kubectl edit -n crossplane-system deployment stack-gcp-controller and adding args to the containers: block under spec/template/spec/containers:

spec:
  template:
    spec:
      containers:
      - args:
        - --debug
      - image: crossplane/stack-gcp:v0.5.0

Making this change after install can be cumbersome. In the Slack thread the notion of specifying the intent for including debugging in the stack controller was suggested.

# This is not currently supported, but perhaps could be implemented as such
kind: StackInstall
spec:
  package: ...
  controllerArgs:
  - ...

In this suggestion, controllerArgs would be appended to those built into the Stack package install.yaml. Replacing the args may be a better choice. This suggestion also implies that a single controller would be deployed, but the StackInstall spec is open to multiple Stacks fulfilling a StackInstall.

This is related to crossplane/crossplane#974, crossplane/crossplane#1126, and crossplane/crossplane#1238

from provider-gcp.

hasheddan avatar hasheddan commented on September 27, 2024 1

Adding some context here with a new observability guide that was recently added to our docs: https://crossplane.io/docs/master/observability-developer-guide.html

/cc @negz for theory behind logging strategy

from provider-gcp.

timstoop avatar timstoop commented on September 27, 2024

Just to point out, adding the --debug outputs a lot of lines, but none of them are really useful for the problem I was debugging.

2020-02-07T15:04:52.303Z        DEBUG   crossplane.controller   Reconciling     {"controller": "resourceclaim.crossplane.io", "request": "services/test-postgres"}
2020-02-07T15:04:52.303Z        DEBUG   controller-runtime.controller   Successfully Reconciled {"controller": "mysqlinstance.cloudsqlinstance.database.gcp.crossplane.io", "request": "services/test-postgres"}

Unless there are more options I could add that would show the API call it's sending?

from provider-gcp.

negz avatar negz commented on September 27, 2024

We don't quite log every API call, but we increased the amount of debug logging for stack-gcp in #142. You can see the new logs and events, and more importantly Kubernetes events, if you run the master build of this stack, or wait for next week's release. Please let us know whether they seem useful!

Edit: Here's an example - crossplane/crossplane-runtime#108 (comment)

from provider-gcp.

gberche-orange avatar gberche-orange commented on September 27, 2024

A workaround may be to use the GCP log explorer to inspect the payloads sent by crossplane provider-gcp and maybe compare them with a successful payloads.

from provider-gcp.

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.