terraform-google-kubernetes-engine icon indicating copy to clipboard operation
terraform-google-kubernetes-engine copied to clipboard

cluster maintenance window must be timestring

Open mikebou opened this issue 8 months ago • 1 comments

TL;DR

Support and the documentation both agree that the end date for the var.maintenance_end_time should allow a value of "" however using a value of "" generates the following error.

Error: "maintenance_policy.0.daily_maintenance_window.0.start_time" ("2024-06-22T22:00:00Z") must be in the format HH:mm (RFC3339) with module.gke_pe_dev.google_container_cluster.primary on .terraform/modules/gke_pe_dev/modules/beta-private-cluster/cluster.tf line 375, in resource "google_container_cluster" "primary":

Expected behavior

using source = "terraform-google-modules/kubernetes-engine/google//modules/beta-private-cluster" version = "~> 33.0"

setting a maintenance window of maintenance_recurrence = "FREQ=WEEKLY;BYDAY=SA" maintenance_start_time = "2024-06-22T22:00:00Z" maintenance_end_time = ""

should pass terraform plan and create a weekly maintenance window on every Saturday night starting Jun 22 of last year.

Observed behavior

No response

Terraform Configuration

source  = "terraform-google-modules/kubernetes-engine/google//modules/beta-private-cluster"
  version = "~> 33.0"

  maintenance_recurrence       = "FREQ=WEEKLY;BYDAY=SA"
  maintenance_start_time       = "2024-06-22T22:00:00Z"
  maintenance_end_time         = ""

Terraform Version

Terraform
v1.5.7

Terraform Provider Versions

google = {
      source  = "hashicorp/google"
      version = "~> 6.0"
    }
    google-beta = {
      source  = "hashicorp/google-beta"
      version = "~> 6.0"
    }

Additional information

No response

mikebou avatar Mar 19 '25 20:03 mikebou

Im not sure this is a module issue, as the error is coming from the provider itself

DrFaust92 avatar Apr 11 '25 12:04 DrFaust92