feat: add image pull policy variable
continuous-integration/drone/push Build is failing Details

main
RaviAnand Mohabir 1 year ago
parent a78522e8a2
commit 3b9fb59f8c

@ -49,8 +49,9 @@ resource "kubernetes_deployment" "drone_server" {
spec {
service_account_name = kubernetes_service_account.drone_server.metadata.0.name
container {
image = var.image_registry == "" ? "${var.image_repository}:${var.image_tag}" : "${var.image_registry}/${var.image_repository}:${var.image_tag}"
name = "drone"
image = var.image_registry == "" ? "${var.image_repository}:${var.image_tag}" : "${var.image_registry}/${var.image_repository}:${var.image_tag}"
image_pull_policy = var.image_pull_policy
name = "drone"
env_from {
config_map_ref {
name = kubernetes_config_map.drone_server.metadata.0.name

@ -169,3 +169,9 @@ variable "drone_s3_region" {
type = string
default = "us-east-1"
}
variable "image_pull_policy" {
description = "Image pull policy for Drone server image"
type = string
default = "IfNotPresent"
}

Loading…
Cancel
Save