Skip to content

install.sh script fails to check pre-installed cilium binary #28

Description

@vishnusomank

Cilium binary before running the script

➜  ~ whereis cilium
cilium: /usr/local/bin/cilium

Steps to reproduce

  • Setup a GKE cluster
  • Run ./install.sh

The output of install.sh

➜  ~ curl -s https://raw.githubusercontent.com/accuknox/tools/main/install.sh | bash
---=[License]=---
1. KubeArmor is licensed under the Apache License, Version 2.0. For details check (https://github.com/kubearmor/KubeArmor/blob/main/LICENSE)
2. The Cilium user space components are licensed under the Apache License, Version 2.0. The BPF code templates are licensed under the General Public License, Version 2.0.

[OK] Please read the license
[OK] helm found
[OK] karmor cli tool found
gke_formal-envelope-323909_us-central1-c_sample-cluster
[OK] k8s cluster accessibility
Installing cilium cli tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 21.5M  100 21.5M    0     0  8499k      0  0:00:02  0:00:02 --:--:-- 11.1M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    92  100    92    0     0    287      0 --:--:-- --:--:-- --:--:--     0
[sudo] password for zero:

Possible cause

  • check_prerequisites() lacks the ability to identify pre-installed cilium binary
  • Explicit cilium binary installation function [ install_cilium_cli() ] found in install.sh

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions