#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run import incubaid.herolib.installers.k8s.cryptpad // This example demonstrates how to use the CryptPad installer. // 1. Create a new installer instance with a specific hostname. // Replace 'mycryptpad' with your desired hostname. mut installer := cryptpad.get( name: 'kristof' create: true )! // cryptpad.delete()! // 2. Configure the installer (all settings are optional with sensible defaults) // installer.hostname = 'mycryptpad' // installer.namespace = 'cryptpad' // 3. Install CryptPad. // This will generate the necessary Kubernetes YAML files and apply them to your cluster. installer.install()! // println('CryptPad installation started.') // println('You can access it at https://${installer.hostname}.gent01.grid.tf') // 4. To destroy the deployment, you can run the following: // installer.destroy()!