Skip to content

Commit

Permalink
Add file indicating if inspect. ran on control plane node
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed Apr 26, 2024
1 parent c4bb90f commit cbc905d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion k8s/scripts/inspect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function collect_args {

function collect_cluster_info {
log_info "Copy k8s cluster-info dump to the final report tarball"
k8s kubectl cluster-info dump &>"$INSPECT_DUMP"/cluster-info
k8s kubectl cluster-info dump &> "$INSPECT_DUMP/cluster-info.log"
}

function collect_sbom {
Expand Down Expand Up @@ -105,6 +105,7 @@ printf -- 'Inspecting services\n'

if is_control_plane_node; then
printf -- 'Running inspection on a control-plane node\n'
printf -- 'Inspection ran on a control plane node.' > "$INSPECT_DUMP/is-control-plane-node"
fi

for service in "${services[@]}"; do
Expand Down

0 comments on commit cbc905d

Please sign in to comment.