-
Notifications
You must be signed in to change notification settings - Fork 976
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
Make attribute ingress_class_name
of resource kubernetes_ingress_v1
computed
#1947
Conversation
@@ -185,21 +185,6 @@ func TestAccKubernetesIngress_WaitForLoadBalancerGoogleCloud(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func testAccCheckKubernetesIngressForceNew(old, new *api.Ingress, wantNew bool) resource.TestCheckFunc { |
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.
Not related to the original issue, just noticed that it is not in use, and since I touched this file, I cleaned it up a bit.
@@ -452,47 +437,3 @@ resource "kubernetes_ingress" "test" { | |||
wait_for_load_balancer = true | |||
}`, name, name, name, name, name, name, name) | |||
} | |||
|
|||
func testAccKubernetesIngressConfig_stateUpgradev0(provider, name string) string { |
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.
Not related to the original issue, just noticed that it is not in use, and since I touched this file, I cleaned it up a bit.
@@ -310,19 +310,33 @@ func TestAccKubernetesIngressV1_multipleRulesDifferentHosts(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func testAccCheckKubernetesIngressV1ForceNew(old, new *networking.Ingress, wantNew bool) resource.TestCheckFunc { |
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.
Not related to the original issue, just noticed that it is not in use, and since I touched this file, I cleaned it up a bit.
ingress_class_name
of resource kubernetes_ingress_v1
computedingress_class_name
of resource kubernetes_ingress_v1
computed
66562c2
to
7e0c7a2
Compare
7e0c7a2
to
8c413b6
Compare
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! Great that you spotted the dead test code and cleaned it up!
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR fixes an issue when the provider removes the attribute
ingress_class_name
that is set by Kubernetes to the default ingress class value if it does not explicitly define. The attributeingress_class_name
of resourcekubernetes_ingress_v1
is now marked as computed.Acceptance tests
Output from acceptance testing:
Release Note
Release note for CHANGELOG:
References
Community Note