https://github.com/its-alex/bug-tanka-delete-without-log
https://github.com/its-alex/bug-tanka-delete-without-log
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/its-alex/bug-tanka-delete-without-log
- Owner: Its-Alex
- Created: 2024-11-13T10:36:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-13T10:45:59.000Z (over 1 year ago)
- Last Synced: 2025-10-30T17:48:20.305Z (8 months ago)
- Language: Jsonnet
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tanka bug with hivemq-operator
This repository is used to reproduce a `tanka` bug.
## Requirements
- [mise](https://mise.jdx.dev/)
To manage tooling install and versions I use [mise](https://mise.jdx.dev/)
if you want to install tools manually, you can see them with their versions in
[.mise.toml](./.mise.toml), or if you want to use mise:
```sh-session
$ mise install
```
Afterwards you need to pull and install tanka requirements using the following
commands:
```sh-session
$ jb install
$ tk tool charts vendor
```
You're ready to reproduce the bug.
## How to reproduce
First you need to deploy hivemq-operator into a kind cluster:
```sh-session
$ ./scripts/kind-up.sh
$ tk apply \
-t 'CustomResourceDefinition/.+' \
--auto-approve always \
--name kind-local \
environments/dev
...
customresourcedefinition.apiextensions.k8s.io/hivemq-clusters.hivemq.com created
$ tk apply \
--auto-approve always \
--name kind-local \
environments/dev
...
deployment.apps/hivemq-operator-operator created
hivemqcluster.hivemq.com/hivemq-operator created
```
Now if you try to uninstall hivemq-operator you will get an error with no log:
```sh-session
$ tk delete --name kind-local environments/dev
...
Deleting from namespace 'default' of cluster 'kind-local' at 'https://127.0.0.1:6443' using context 'kind-local'.
Please type 'yes' to confirm: yes
Error: exit status 1
```
Even when using `--log-level trace`:
```sh-session
$ tk delete --log-level trace --name kind-local environments/dev
...
Deleting from namespace 'default' of cluster 'kind-local' at 'https://127.0.0.1:6443' using context 'kind-local'.
Please type 'yes' to confirm: yes
Error: exit status 1
```