Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run/check getting-started scripts #603

Closed
12 tasks done
Tracked by #557
NickLarsenNZ opened this issue Jul 15, 2024 · 1 comment
Closed
12 tasks done
Tracked by #557

Run/check getting-started scripts #603

NickLarsenNZ opened this issue Jul 15, 2024 · 1 comment
Assignees

Comments

@NickLarsenNZ
Copy link
Member

NickLarsenNZ commented Jul 15, 2024

For each operator with a getting_started.sh script, run the following:

# Some of the scripts are in a code/ subdirectory
# pushd docs/modules/superset/examples/getting_started
# pushd docs/modules/superset/examples/getting_started/code
pushd $(fd -td getting_started | grep examples); cd code 2>/dev/null || true

# Make a fresh cluster (~12 seconds)
kind delete cluster && kind create cluster
./getting_started.sh stackablectl

# Make a fresh cluster (~12 seconds)
kind delete cluster && kind create cluster
./getting_started.sh helm

popd

Add the following checklist to the PRs:

```[tasklist]
### Run getting_started.sh via
- [ ] `stackablectl`
- [ ] `helm`
```

Tasks

Preview Give feedback
  1. 2 of 2
    release/24.7.0
    NickLarsenNZ
  2. 2 of 2
    release/24.7.0
    NickLarsenNZ
  3. 2 of 2
    release/24.7.0
    NickLarsenNZ
  4. 2 of 2
    release/24.7.0
    NickLarsenNZ
  5. 2 of 2
    release/24.7.0
    NickLarsenNZ
  6. 2 of 2
    release/24.7.0
    NickLarsenNZ
  7. 2 of 2
    release/24.7.0
    NickLarsenNZ
  8. 2 of 2
    release/24.7.0
    NickLarsenNZ
  9. 2 of 2
    release/24.7.0
    NickLarsenNZ
  10. 2 of 2
    release/24.7.0
    NickLarsenNZ
  11. 2 of 2
    release/24.7.0
    NickLarsenNZ
  12. 2 of 2
    release/24.7.0
    NickLarsenNZ

Important

kafka-operator requires kafkacat (kcat in nix)

Note

The list above was generated by:

# cd to directory where you store the stackabletech repos locally
find -name 'getting_started.sh' -not -path './operator-templating/*' \
| cut -d/ -f2 \
| sort \
| sed 's/^/- [ ] /'

If you want to reuse a cluster, you can delete everything by doing:

# Delete Stackable Custom Resources
kubectl get crds | grep stackable | cut -d' ' -f1 | xargs -I {} kubectl -n default delete {} --all

# Delete well-known Kubernetes Resources in the default namespace
kubectl -n default delete all --all --grace-period 0

# Delete the operators
stackablectl release uninstall dev

# delete the Stackable Custom Resource Definitions
kubectl get crds | grep stackable | cut -d' ' -f1 | xargs -I {} kubectl delete crd {}

# You might need to check on any Helm releases
helm list
helm uninstall ...
@NickLarsenNZ
Copy link
Member Author

Earlier in the process I was fixing as many lint issues as I could (even for files that weren't touched). But from now (kafka-operator), I will only fix what is required to speed up the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant