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
21 changes: 21 additions & 0 deletions .github/scripts/validate-deploy.sh
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
#!/usr/bin/env bash

KUBECONFIG=$(cat ./kubeconfig)

echo "Checking for logdna-agent daemonset"
if ! kubectl get daemonset logdna-agent -n ibm-observe; then
echo "logdna-agent daemonset not found"
exit 1
fi

echo "Checking logdna-agent pod status"
if ! kubectl rollout status daemonset/logdna-agent -n ibm-observe; then
echo "daemonset/logdna-agent rollout status error"
exit 1
fi

echo "Checking for console link"
if ! kubectl get consolelink toolkit-logdna; then
echo "consolelink not found"
kubectl get consolelink
exit 1
fi
10 changes: 10 additions & 0 deletions module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ versions:
refs:
- source: github.com/cloud-native-toolkit/terraform-ibm-resource-group
version: ">= 2.1.0"
- id: sysdig_bind
refs:
- source: github.com/cloud-native-toolkit/terraform-ibm-sysdig-bind
version: ">= 1.0.0"
optional: true
variables:
- name: cluster_id
moduleRef:
Expand All @@ -52,6 +57,11 @@ versions:
moduleRef:
id: resource_group
output: name
- name: sync
moduleRef:
id: sysdig_bind
output: sync
optional: true
- name : region
scope: global
- name : private_endpoint
Expand Down
6 changes: 6 additions & 0 deletions test/stages/stage1-cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ module "dev_cluster" {
cos_id = ""
login = true
}

resource null_resource write_kubeconfig {
provisioner "local-exec" {
command = "echo '${module.dev_cluster.platform.kubeconfig}' > ${path.cwd}/kubeconfig"
}
}