/system-tools

This repo is for tools helping with various cleanup tasks for rancher projects. Example: rancher installation cleanup

Primary LanguageGoApache License 2.0Apache-2.0

system-tools

Rancher 2.0 operations tool kit.

Commands:
  • Remove

The system-tools remove command is used to delete a rancher 2.0 management plane deployment. It operates by applying the following steps:

  • Remove Labels, Annotations and Finalizers from all Namespaces and Secrets.
  • Remove Machines, Clusters, Projects and Users CRDs and corresponding namespaces.
  • Remove Rancher-Labeled ClusterRoles and ClusterRoleBindings.
  • Remove the rancher deployment Namespace, default is cattle-system.

Building

make

Running

./bin/system-tools

License

Copyright (c) 2018 Rancher Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.