Comments (5)
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.
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.
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.
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.
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)
- Missing bigqueryConfig for pubsub subscriptions HOT 4
- Cannot delete CloudSqlInstance when there's a failover replica HOT 1
- Updating labels on GKE fails with "fingerprint mismatch" HOT 2
- Unable to upgrade GKE cluster HOT 4
- Importing GKE cluster with a maintenance policy enabled causes provider-gcp pod to crash HOT 1
- Support network peering
- Subscription (PubSub). Expiration period (Never expire)
- v0.22.0 issue creating provider-gcp deployment HOT 2
- OAuth2 via Environment Variable
- [GCP-Container] Nodepool reconciliation fails when gvisor enabled
- Add desired state changed event filter to all controllers HOT 2
- GCP Postgres CloudSQL database observation writes `replicaConfiguration` which is only applicable for MySQL
- Docs neglect binding the provider to the controllerConfig via controllerConfigRef
- Full State should be represented under status.atProvider
- Provider fails to install from JFrog private registry
- Private Service Connect Feature
- Enabling support for TLS and CA handling for CloudMemorystoreInstance resources
- Support Maintenance Policy for Memorystore Redis
- Unable to set Bucket lifecycle rule condition ageInDays to 0
- GKE Autoscaling NodePool continually resets its node count when initNodeCount is set, but nodeCount is not HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from provider-gcp.