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 eks bugs #838

Merged
merged 1 commit into from
Dec 21, 2023
Merged

fix eks bugs #838

merged 1 commit into from
Dec 21, 2023

Conversation

jhsinger-klotho
Copy link
Contributor

fixes kubeconfig circular iac dependency and emitter bug to where we try to sanitize to the wrong type since its done before convert

Standard checks

  • Unit tests: Any special considerations?
  • Docs: Do we need to update any docs, internal or public?
  • Backwards compatibility: Will this break existing apps? If so, what would be the extra work required to keep them working?

@@ -90,32 +90,31 @@ func ConsumeFromResource(consumer, emitter *construct.Resource, ctx DynamicConte
addErr(consume, emit, err)
continue
}
val, err = sanitizeForConsumption(ctx, resource, consumeTmpl.GetProperty(consume.PropertyPath), val)
pval, err := resource.GetProperty(consume.PropertyPath)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why did this move up? pval isn't used until after converting & sanitizing so it can be done later

@@ -177,7 +177,7 @@ func (l *ListProperty) Validate(resource *construct.Resource, value any, ctx kno

listVal, ok := value.([]any)
if !ok {
return fmt.Errorf("invalid map value %v", value)
return fmt.Errorf("invalid list value %v", value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jhsinger-klotho jhsinger-klotho merged commit a92abce into main Dec 21, 2023
6 checks passed
@jhsinger-klotho jhsinger-klotho deleted the eks_bugs branch December 21, 2023 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants