Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions apis/monitoring/v1alpha1/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ func (a ClusterAlert) CustomResourceDefinition() *apiextensions.CustomResourceDe
Plural: ResourcePluralClusterAlert,
Singular: ResourceSingularClusterAlert,
Kind: ResourceKindClusterAlert,
ListKind: ResourceKindClusterAlert + "List",
ShortNames: []string{"ca"},
ResourceScope: string(apiextensions.NamespaceScoped),
Labels: crdutils.Labels{
LabelsMap: map[string]string{
"app": "searchlight",
},
LabelsMap: map[string]string{"app": "searchlight"},
},
SpecDefinitionName: "github.com/appscode/searchlight/apis/monitoring/v1alpha1.ClusterAlert",
EnableValidation: true,
Expand All @@ -33,13 +30,10 @@ func (a NodeAlert) CustomResourceDefinition() *apiextensions.CustomResourceDefin
Plural: ResourcePluralNodeAlert,
Singular: ResourceSingularNodeAlert,
Kind: ResourceKindNodeAlert,
ListKind: ResourceKindNodeAlert + "List",
ShortNames: []string{"noa"},
ResourceScope: string(apiextensions.NamespaceScoped),
Labels: crdutils.Labels{
LabelsMap: map[string]string{
"app": "searchlight",
},
LabelsMap: map[string]string{"app": "searchlight"},
},
SpecDefinitionName: "github.com/appscode/searchlight/apis/monitoring/v1alpha1.NodeAlert",
EnableValidation: true,
Expand All @@ -54,13 +48,10 @@ func (a PodAlert) CustomResourceDefinition() *apiextensions.CustomResourceDefini
Plural: ResourcePluralPodAlert,
Singular: ResourceSingularPodAlert,
Kind: ResourceKindPodAlert,
ListKind: ResourceKindPodAlert + "List",
ShortNames: []string{"poa"},
ResourceScope: string(apiextensions.NamespaceScoped),
Labels: crdutils.Labels{
LabelsMap: map[string]string{
"app": "searchlight",
},
LabelsMap: map[string]string{"app": "searchlight"},
},
SpecDefinitionName: "github.com/appscode/searchlight/apis/monitoring/v1alpha1.PodAlert",
EnableValidation: true,
Expand All @@ -75,12 +66,9 @@ func (a Incident) CustomResourceDefinition() *apiextensions.CustomResourceDefini
Plural: ResourcePluralIncident,
Singular: ResourceSingularIncident,
Kind: ResourceKindIncident,
ListKind: ResourceKindIncident + "List",
ResourceScope: string(apiextensions.NamespaceScoped),
Labels: crdutils.Labels{
LabelsMap: map[string]string{
"app": "searchlight",
},
LabelsMap: map[string]string{"app": "searchlight"},
},
SpecDefinitionName: "github.com/appscode/searchlight/apis/monitoring/v1alpha1.Incident",
EnableValidation: true,
Expand Down
4 changes: 0 additions & 4 deletions apis/monitoring/v1alpha1/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ spec:
group: monitoring.appscode.com
names:
kind: ClusterAlert
listKind: ClusterAlertList
plural: clusteralerts
shortNames:
- ca
Expand Down Expand Up @@ -371,7 +370,6 @@ spec:
group: monitoring.appscode.com
names:
kind: NodeAlert
listKind: NodeAlertList
plural: nodealerts
shortNames:
- noa
Expand Down Expand Up @@ -735,7 +733,6 @@ spec:
group: monitoring.appscode.com
names:
kind: PodAlert
listKind: PodAlertList
plural: podalerts
shortNames:
- poa
Expand Down Expand Up @@ -1139,7 +1136,6 @@ spec:
group: monitoring.appscode.com
names:
kind: Incident
listKind: IncidentList
plural: incidents
singular: incident
scope: Namespaced
Expand Down
4 changes: 2 additions & 2 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.