summarylogtreecommitdiffstats
path: root/0.install
blob: 21c909aae1bba87bbd0d02d4c0679c5a0799d652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Print deprecation notice after installation or upgrade

post_install() {
    echo "\e[1;31m"
    echo "carvel-tools is deprecated and will be removed in the future."
    echo "\e[0m"
    echo "Please install the following packages instead:"
    echo "  - imgpkg (imgpkg-bin)"
    echo "  - kapp   (kapp-bin)"
    echo "  - kbld   (kbld-bin)"
    echo "  - kctrl  (kctrl-bin)"
    echo "  - kwt    (kwt-bin)"
    echo "  - vendir (vendir-bin)"
    echo "  - ytt    (ytt-bin)"
}

post_upgrade() {
    echo "\e[1;31m"
    echo "carvel-tools is deprecated and will be removed in the future."
    echo "\e[0m"
    echo "Please install the following packages instead:"
    echo "  - imgpkg (imgpkg-bin)"
    echo "  - kapp   (kapp-bin)"
    echo "  - kbld   (kbld-bin)"
    echo "  - kctrl  (kctrl-bin)"
    echo "  - kwt    (kwt-bin)"
    echo "  - vendir (vendir-bin)"
    echo "  - ytt    (ytt-bin)"
}