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

Invalid alm-examples #50

Closed
wallrj opened this issue Feb 9, 2022 · 1 comment
Closed

Invalid alm-examples #50

wallrj opened this issue Feb 9, 2022 · 1 comment

Comments

@wallrj
Copy link
Member

wallrj commented Feb 9, 2022

When I submit bundle on X the CI pipeline fails with the following error:

TASK [build_operator_version_bundle : Check alm-examples] **********************
fatal: [localhost]: FAILED! => 
  msg: |-
    The task includes an option with an undefined variable. The error was: Unable to look up a name or access an attribute in template string ({{ operator_vars.metadata.annotations['alm-examples'] | from_json }}).
    Make sure your variable name does not contain invalid characters like '-': the JSON object must be str, bytes or bytearray, not AnsibleUndefined
  
    The error appears to be in '/playbooks/upstream/roles/build_operator_version_bundle/tasks/main.yml': line 37, column 11, but may
    be elsewhere in the file depending on the exact syntax problem.
  
    The offending line appears to be:
  
          block:
            - name: "Check alm-examples"
              ^ here
...ignoring

TASK [build_operator_version_bundle : Fail when 'alm-examples' is not valid json object] ***
fatal: [localhost]: FAILED! => changed=false 
  msg: 'Error: [cert-manager/1.6.1] Value ''metadata.annotations.alm-examples'' in CSV is not valid json object.'

It looks like OperatorSDK 1.17.0 introduced a new stricter validation check

We should update our build scripts to use that version of OperatorSDK and fix the alm-examples

@wallrj
Copy link
Member Author

wallrj commented Feb 12, 2022

It seems that this error was in the CI pipeline which has now been updated

@wallrj wallrj closed this as completed Feb 12, 2022
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

No branches or pull requests

1 participant