Closed nabadger closed 5 months ago
Although more of a feature request, making the outputs optional would really be beneficial to us and help us get of the v1 operator.
Or given we don't use this, can we safely ignore this error for now?
Hi @nabadger,
Thank you for raising this issue. I think we can get rid of this label, it looks a bit redundant since the same information can be obtained from metadata.ownerReferences
.
I will work with @jtdoepke on PR to fix this.
Thanks @arybolovlev
I've also noticed that the outputs for configmaps/secrets get created with empty values for us. I think this because in our case we don't specify the outputs:
field in the Module/Workspaces. Do you think it's worth opening a feature-request to skip generation of these resources if no outputs specified?
That is an interesting observation, @nabadger! Could you please raise a new issue for this request? This will be a good step toward a more reliable output solution since now outputs can duplicate which might be a problem on a big scale.
Thanks!
Operator Version, Kind and Kubernetes Version
Output Log
Steps To Reproduce
Create a module with a long name exceeding the 63 char limit length.
The name of the module is attached as a label to the generated configmap (which then causes this error).
Expected Behavior
Since the limitation is known ahead of time, it might be a good idea to catch this at the time the module is created?
I don't think it's wise to truncate the name, although that would get around the issue too...
Actual Behavior
The module gets created, but the associated
ConfigMap
(in our case) does not.There are errors in the operator log as well as
ReconcileModuleOutputs
events.Additional Context
In our case our module names are long because they are auto-generated. In the v1 operator this wasn't an issue since I don't believe the labels were propagated, but they are in the v2.
I can attempt to shorten the module names (but we have lots!) and I've only spotted this issue late on in our migration plan..so it's a bit painful :)
In our case, I don't believe we're making use of the module outputs - could they be optional? Or could the labels propagation also be optional?
References
Community Note