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

GSoC: Implement SLI Custom Resource Definition and Controller #41

Open
eysk-io opened this issue Jul 15, 2022 · 0 comments · May be fixed by #42
Open

GSoC: Implement SLI Custom Resource Definition and Controller #41

eysk-io opened this issue Jul 15, 2022 · 0 comments · May be fixed by #42
Assignees
Labels
enhancement New feature or request gsoc Google Summer of Code

Comments

@eysk-io
Copy link
Collaborator

eysk-io commented Jul 15, 2022

Initialize the default Custom Resource Definition with a default controller. Specifically using the operator-sdk cli (i.e. operator-sdk create api --version v1 --kind KeptnServiceLevelIndicator --resource --controller).

API Definition

type KeptnServiceLevelIndicator struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata,omitempty"`

    Spec    KeptnServiceLevelIndicatorSpec       `json:"spec,omitempty"`
}

type KeptnServiceLevelIndicatorSpec struct {
    Provider    string            `json:"provider"`
    Indicators  map[string]string `json:"indicators"`
}

type KeptnServiceLevelIndicatorList struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata,omitempty"`

    Items   []KeptnServiceLevelIndicator `json:"items"`
}
@eysk-io eysk-io added enhancement New feature or request gsoc Google Summer of Code labels Jul 15, 2022
@eysk-io eysk-io self-assigned this Jul 15, 2022
@eysk-io eysk-io changed the title GSoC: SLI Custom Resource Definition and Default Controller GSoC: Implement SLI Custom Resource Definition and Controller Jul 24, 2022
@eysk-io eysk-io changed the title GSoC: Implement SLI Custom Resource Definition and Controller GSoC: Implement SLI Custom Resource Definition Jul 25, 2022
@eysk-io eysk-io changed the title GSoC: Implement SLI Custom Resource Definition GSoC: Implement SLI Custom Resource Definition and Controller Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gsoc Google Summer of Code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant