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

feat: get required fields from a resource #155

Open
AmitKumarDas opened this issue Oct 19, 2020 · 1 comment
Open

feat: get required fields from a resource #155

AmitKumarDas opened this issue Oct 19, 2020 · 1 comment
Labels

Comments

@AmitKumarDas
Copy link

AmitKumarDas commented Oct 19, 2020

ProblemStatement: As a SRE admin, I want to fetch required fields from a particular resource. For example, I want to fetch spec.replicas from the Deployment abc running in def namespace.

@AmitKumarDas
Copy link
Author

Draft design

kind: Recipe
spec:
  tasks:
  - name: get-replicas-from-deployment
    get:
      state:
        kind: Deployment
        metadata:
          name: abc
          namespace: def
        spec: 
          replicas: ?
  • Above when applied will result in below
kind: Recipe
spec:
  # removed for brevity
status:
  tasks:
    get-replicas-from-deployment:
      object:
        kind: Deployment
        metadata:
          name: abc
          namespace: def
        spec: 
          replicas: 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant