Compare commits

..

No commits in common. "e568b5aa824e6e31cc6824056ab5b804f4a594e0" and "5bd824dee56c94b15e4cc5adf2bf45509418efa3" have entirely different histories.

2 changed files with 7 additions and 2 deletions

View file

@ -18,7 +18,7 @@ fun Prov.provisionHetznerCSIForK8s(hetznerApiToken: Secret, encryptionPassphrase
values = mapOf( values = mapOf(
"HETZNER_API_TOKEN" to hetznerApiToken.plain() "HETZNER_API_TOKEN" to hetznerApiToken.plain()
)) ))
cmd("kubectl apply -f hcloud-api-token-secret.yaml", k3sManualManifestsDir) applyHetznerCSIFileFromResource(File(k3sManualManifestsDir, "hcloud-api-token-secret.yaml"))
applyHetznerCSIFileFromResource(File(k3sManualManifestsDir, "hcloud-csi.yaml")) applyHetznerCSIFileFromResource(File(k3sManualManifestsDir, "hcloud-csi.yaml"))
// Encryption // Encryption
@ -30,7 +30,7 @@ fun Prov.provisionHetznerCSIForK8s(hetznerApiToken: Secret, encryptionPassphrase
values = mapOf( values = mapOf(
"HETZNER_ENCRYPTION_PASSPHRASE" to encryptionPassphrase.plain() "HETZNER_ENCRYPTION_PASSPHRASE" to encryptionPassphrase.plain()
)) ))
cmd("kubectl apply -f hcloud-encryption-secret.yaml", k3sManualManifestsDir) applyHetznerCSIFileFromResource(File(k3sManualManifestsDir, "hcloud-encryption-secret.yaml"))
applyHetznerCSIFileFromResource(File(k3sManualManifestsDir, "hcloud-encrypted-storage-class.yaml")) applyHetznerCSIFileFromResource(File(k3sManualManifestsDir, "hcloud-encrypted-storage-class.yaml"))
} }

View file

@ -37,6 +37,8 @@ private val k3sEchoWithTls = File(k3sManualManifestsDir, "echo-tls.yaml")
private val k3sEchoNoTls = File(k3sManualManifestsDir, "echo-no-tls.yaml") private val k3sEchoNoTls = File(k3sManualManifestsDir, "echo-no-tls.yaml")
private val selfSignedCertificate = File(k3sManualManifestsDir, "selfsigned-certificate.yaml") private val selfSignedCertificate = File(k3sManualManifestsDir, "selfsigned-certificate.yaml")
private val hetznerCSIDriver = File(k3sManualManifestsDir, "hcloud-csi.yaml")
private val localPathProvisionerConfig = File(k3sManualManifestsDir, "local-path-provisioner-config.yaml") private val localPathProvisionerConfig = File(k3sManualManifestsDir, "local-path-provisioner-config.yaml")
// ----------------------------------- public functions -------------------------------- // ----------------------------------- public functions --------------------------------
@ -123,6 +125,9 @@ fun Prov.installK3s(k3sConfig: K3sConfig): ProvResult {
applyK3sFileFromResource(k3sMiddleWareHttpsRedirect) applyK3sFileFromResource(k3sMiddleWareHttpsRedirect)
} }
// hetzner csi-driver
applyK3sFileFromResource(hetznerCSIDriver)
// other // other
applyK3sFileFromResource(localPathProvisionerConfig) applyK3sFileFromResource(localPathProvisionerConfig)