-
Notifications
You must be signed in to change notification settings - Fork 500
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
Add provider versions constraint for GCP and Aliyun and support values file customization for tidb-operator and tidb-cluster #959
Conversation
/run-e2e-in-kind |
deploy/gcp/main.tf
Outdated
@@ -50,7 +50,7 @@ module "tidb-operator" { | |||
kubeconfig_path = local.kubeconfig | |||
tidb_operator_version = var.tidb_operator_version | |||
maintenance_window_start_time = var.maintenance_window_start_time | |||
operator_helm_values = var.operator_helm_values | |||
operator_helm_values = var.operator_helm_values == "" ? "" : file(var.operator_helm_values) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inline yaml values is sometimes convenient, short and no external file required. How about adding a new variable for file support?
operator_helm_values = <<EOF
operatorImage: quay.io/cofyc/tidb-operator:canary
imagePullPolicy: Always
EOF
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I thought it was designed for external values file, will revert the change.
/run-e2e-in-kind |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-e2e-in-kind |
/run-e2e-in-kind |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-e2e-in-kind |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Please fix the CI
@aylei CI passed, PTAL again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cherry pick to release-1.0 failed |
…P and Aliyun (#967) * add provider version constraint for GCP and Aliyun * Support customized values file for tidb-operator and tidb-cluster
What problem does this PR solve?
fix #958
What is changed and how does it work?
Add version constraint for providers.
Modify terraform scripts to support values customization for tidb-operator and tidb-cluster.
Check List
Tests
terraform init
does not prompt for version constraint any moreCode changes
Side effects
NONE
Related changes
Does this PR introduce a user-facing change?: