Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Invalid index" creating private cluster #422

Commits on Feb 6, 2020

  1. fix Invalid index error when creating a private cluster

    As google_container_cluster.primary.private_cluster_config may be empty,
    we check its length before trying to access it.
    
    When creating a new private cluster, a "Invalid index" error was showing
    up during the planning.
    
    By checking for variable length before trying to access it the plan (and
    apply) works as expected.
    
    Issue: [terraform-google-modules#419]
    
    Co-authored-by: Morgante Pell <morgantep@google.com>
    endorama and morgante committed Feb 6, 2020
    Configuration menu
    Copy the full SHA
    5e940fb View commit details
    Browse the repository at this point in the history
  2. perform generation

    endorama committed Feb 6, 2020
    Configuration menu
    Copy the full SHA
    fe9fea0 View commit details
    Browse the repository at this point in the history