add drone config and dockerhub skeleton

This commit is contained in:
viktorbarzin 2021-02-10 21:17:31 +00:00
parent a0c40cc687
commit 3c41c2e641
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 415 additions and 4 deletions

View file

@ -0,0 +1,23 @@
variable namespace {}
variable password {}
variable dockerhub_creds_secret_name {
default = "dockerhub-creds"
}
variable username {
default = "viktorbarzin"
}
# DO NOT USE until able to store `stringData`
resource "kubernetes_secret" "dockerhub_creds" {
metadata {
name = var.dockerhub_creds_secret_name
namespace = var.namespace
}
# data is additionally base64 encode, no stringData yet :/ https://github.com/hashicorp/terraform-provider-kubernetes/issues/901
data = {
"username" = var.username
"password" = var.password
}
type = "kubernetes.io/basic-auth"
}