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
8 changes: 8 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ rules:
- get
- list
- watch
- apiGroups:
- batch.volcano.sh
resources:
- jobs
verbs:
- get
- list
- watch
- apiGroups:
- datadoghq.com
resources:
Expand Down
8 changes: 8 additions & 0 deletions dist/backend-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,14 @@ rules:
- get
- list
- watch
- apiGroups:
- batch.volcano.sh
resources:
- jobs
verbs:
- get
- list
- watch
- apiGroups:
- datadoghq.com
resources:
Expand Down
8 changes: 8 additions & 0 deletions dist/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,14 @@ rules:
- get
- list
- watch
- apiGroups:
- batch.volcano.sh
resources:
- jobs
verbs:
- get
- list
- watch
- apiGroups:
- datadoghq.com
resources:
Expand Down
8 changes: 8 additions & 0 deletions dist/installer_updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,14 @@ rules:
- get
- list
- watch
- apiGroups:
- batch.volcano.sh
resources:
- jobs
verbs:
- get
- list
- watch
- apiGroups:
- datadoghq.com
resources:
Expand Down
8 changes: 8 additions & 0 deletions dist/zxporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,14 @@ rules:
- get
- list
- watch
- apiGroups:
- batch.volcano.sh
resources:
- jobs
verbs:
- get
- list
- watch
- apiGroups:
- datadoghq.com
resources:
Expand Down
4 changes: 4 additions & 0 deletions internal/collector/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const (
CSIStorageCapacity
VolumeAttachment
KubeflowNotebook
VolcanoJob
)

// String returns the string representation of the ResourceType
Expand Down Expand Up @@ -192,6 +193,7 @@ func (r ResourceType) String() string {
CSIStorageCapacity: "csi_storage_capacity",
VolumeAttachment: "volume_attachment",
KubeflowNotebook: "kubeflow_notebook",
VolcanoJob: "volcano_job",
}

if name, ok := names[r]; ok {
Expand Down Expand Up @@ -299,6 +301,8 @@ func (r ResourceType) ProtoType() gen.ResourceType {
return gen.ResourceType_RESOURCE_TYPE_VOLUME_ATTACHMENT
case KubeflowNotebook:
return gen.ResourceType_RESOURCE_TYPE_KUBEFLOW_NOTEBOOK
case VolcanoJob:
return gen.ResourceType_RESOURCE_TYPE_VOLCANO_JOB
default:
return gen.ResourceType_RESOURCE_TYPE_UNSPECIFIED
}
Expand Down
2 changes: 1 addition & 1 deletion internal/collector/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func AllResourceTypes() []ResourceType {
Cluster, ContainerResource,
Namespace, CSINode, Karpenter, Datadog, ArgoRollouts, KedaScaledJob,
KedaScaledObject, ClusterSnapshot, CSIDriver, CSIStorageCapacity,
VolumeAttachment, KubeflowNotebook,
VolumeAttachment, KubeflowNotebook, VolcanoJob,
}
}

Expand Down
Loading
Loading