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

chore(assert): add experiment to assert if Recipe labels are set #144

Closed
wants to merge 1 commit into from
Closed

Conversation

niladrih
Copy link
Member

Signed-off-by: Niladri Halder niladri.halder26@gmail.com

Pull Request template

Please, go through these steps before you submit a PR.

  1. This repository follows semantic versioning convention, therefore each PR title/commit message must follow convention: <type>(<scope>): [#issue_number] - <subject>.
    type is defining if release will be triggering after merging submitted changes, details in CONTRIBUTING.md. #issue_number is optional, when commit resolves any github issue.
    Most common types are:
    • feat - for new features
    • fix - for bug fixes or improvements
    • chore - changes not related to code

IMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.

PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
@niladrih niladrih changed the title Adds a Recipe to assert if labels are set on another Recipe Adds an experiment to assert if labels are set on another Recipe Sep 18, 2020
@AmitKumarDas AmitKumarDas changed the title Adds an experiment to assert if labels are set on another Recipe chore(assert): add experiment to assert if Recipe labels are set Sep 18, 2020
@@ -0,0 +1,50 @@
apiVersion: dope.mayadata.io/v1
Copy link

@AmitKumarDas AmitKumarDas Sep 18, 2020

Choose a reason for hiding this comment

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

rename the file to assert-recipe-phase-is-set-against-labels

apiVersion: dope.mayadata.io/v1
kind: Recipe
metadata:
name: assert-absence-of-deprecated-daemonsets

Choose a reason for hiding this comment

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

rename this

d-testing.dope.mayadata.io/inference: "true"
spec:
tasks:
- name: assert-daemonset-with-extensions-v1beta1

Choose a reason for hiding this comment

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

rename appropriately

name: assert-absence-of-deprecated-daemonsets
namespace: d-testing
labels:
d-testing.dope.mayadata.io/inference: "true"

Choose a reason for hiding this comment

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

remove this label, since inference targets the primary recipes & not the helper recipes.

Choose a reason for hiding this comment

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

add some specific labels e.g.

labels:
  assert-phase-is-set-in-label: true

checks:
- labelSelector:
matchExpressions:
- key: recipe.dope.mayadata.io/phase

Choose a reason for hiding this comment

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

make the selection specific to the helper recipe

@niladrih
Copy link
Member Author

niladrih commented Sep 23, 2020

Addressing the changes in a separate PR.

I have raised a new PR addressing the comments.
Link: #145

@niladrih niladrih closed this Sep 23, 2020
@niladrih niladrih deleted the exp1 branch September 23, 2020 10:29
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