Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions cluster/local/integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -343,21 +343,7 @@ EOF
fi

echo_step "waiting for provider to be installed"
if ! "${KUBECTL}" wait "provider.pkg.crossplane.io/${PACKAGE_NAME}" --for=condition=healthy --timeout=240s; then
echo_error "Provider did not become healthy in time. Dumping logs..."
"${KUBECTL}" get all -n crossplane-system
"${KUBECTL}" get providerrevision -o wide
"${KUBECTL}" get provider -o wide
# Get the logs of the provider pod
POD_NAME=$("${KUBECTL}" get pods -n crossplane-system -l "pkg.crossplane.io/provider=${PACKAGE_NAME}" -o name)
if [ -n "$POD_NAME" ]; then
echo "Logs for $POD_NAME:"
"${KUBECTL}" logs -n crossplane-system "$POD_NAME" -c package-runtime
else
echo "No pod found for provider ${PACKAGE_NAME}"
fi
exit 1
fi
Copy link
Author

@fahedouch fahedouch Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was only for debugging purposes

"${KUBECTL}" wait "provider.pkg.crossplane.io/${PACKAGE_NAME}" --for=condition=healthy --timeout=180s
}

cleanup_provider() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import (
func main() {
var (
app = kingpin.New(filepath.Base(os.Args[0]), "SQL support for Crossplane.").DefaultEnvars()
debug = app.Flag("debug", "Run with debug logging.").Short('d').Bool()
debug = app.Flag("debug", "Run with debug logging.").Short('d').Envar("DEBUG").Bool()
pollInterval = app.Flag("poll", "Poll interval controls how often an individual resource should be checked for drift.").Default("10m").Duration()
syncPeriod = app.Flag("sync", "How often all resources will be double-checked for drift from the desired state.").Short('s').Default("1h").Duration()
leaderElection = app.Flag("leader-election", "Use leader election for the controller manager.").Short('l').Default("false").Envar("LEADER_ELECTION").Bool()
Expand Down
8 changes: 7 additions & 1 deletion examples/deploymentRuntimeConfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ spec:
selector: {}
template:
spec:
containers: []
containers:
- name: package-runtime
env:
- name: DEBUG
value: "true"
- name: CACHE_SYNC_TIMEOUT
value: "5m"
tolerations:
- effect: NoSchedule
key: node.kubernetes.io/role
Expand Down