Skip to content

Various molecule scaffolding tweaks#3661

Merged
joelanford merged 1 commit intooperator-framework:masterfrom
asmacdo:molecule-scaffolding-fixes
Aug 6, 2020
Merged

Various molecule scaffolding tweaks#3661
joelanford merged 1 commit intooperator-framework:masterfrom
asmacdo:molecule-scaffolding-fixes

Conversation

@asmacdo
Copy link
Copy Markdown
Member

@asmacdo asmacdo commented Aug 6, 2020

Motivation: scaffolded operators had some problems running molecule tests.


patchesStrategicMerge:
- manager_image.yaml
- pull_policy/Never.yaml
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This caused a conflict when running kustomize build for config/testing

namespace: '{{ "{{ namespace }}" }}'
loop: "{{ "{{ q('k8s', api_version='v1', kind='Pod', namespace=namespace) }}" }}"
container: manager
loop: "{{ "{{ q('k8s', api_version='v1', kind='Pod', namespace=namespace, label_selector=ctrl_label) }}" }}"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Accessing Pod logs was not working

command: kind delete cluster --name osdk-test --kubeconfig {{ "{{ kubeconfig }}" }}

- name: Unset pull policy
command: '{{ "{{ kustomize }}" }} edit remove patch pull_policy/{{ "{{ operator_pull_policy }}" }}.yaml'
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Cleanup was incomplete, could cause future kustomize conflicts.

Copy link
Copy Markdown
Member

@fabianvf fabianvf left a comment

Choose a reason for hiding this comment

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

/lgtm all good catches, thanks for fixing all my broken code 😅

Copy link
Copy Markdown
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 6, 2020
@joelanford joelanford merged commit 8bca020 into operator-framework:master Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants