generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 271
Closed
Labels
area/runtimeIssues or PRs as related to controller runtime, common reconciliation logic, etcIssues or PRs as related to controller runtime, common reconciliation logic, etckind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
Describe the bug
By using v0.20.1 version of code generator to generate controller, the function of ToACKTags cannot handle edge case of tag that both key and value are nil.
Steps to reproduce
applying yaml file:
apiVersion: memorydb.services.k8s.aws/v1alpha1
kind: ParameterGroup
metadata:
name: test
spec:
description: test
family: memorydb_redis6
name: test
parameterNameValues:
- parameterName: activerehashing
parameterValue: "no"
tags:
- key: "1"
value: "1"
- key:
Expected outcome
Controller works well.
Outcome
Controller stops running after applying a tag with nil key and nil value.
Metadata
Metadata
Assignees
Labels
area/runtimeIssues or PRs as related to controller runtime, common reconciliation logic, etcIssues or PRs as related to controller runtime, common reconciliation logic, etckind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.