Skip to content

GSoC: Implement SLI Custom Resource Definition and Controller #41

@eysk-io

Description

@eysk-io

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"`
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgsocGoogle Summer of Code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions