Skip to content

Commit

Permalink
api modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedro1992 committed Mar 2, 2023
1 parent 224a832 commit bd2a5bc
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module sigs.k8s.io/scheduler-plugins
go 1.19

require (
github.com/diktyo-io/appgroup-api v0.0.9-alpha
github.com/diktyo-io/networktopology-api v0.0.8-alpha
github.com/diktyo-io/appgroup-api v1.0.0-alpha
github.com/diktyo-io/networktopology-api v1.0.0-alpha
github.com/dustin/go-humanize v1.0.0
github.com/go-logr/logr v1.2.3
github.com/google/go-cmp v0.5.8
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/diktyo-io/appgroup-api v0.0.9-alpha h1:rqRNOl4CRD313a+ugZJ2rJAN2sNe5GGd4PfyaV44Dy4=
github.com/diktyo-io/appgroup-api v0.0.9-alpha/go.mod h1:Q0UPLA6aFBogLpiOiA9+7sqnlvPES6ge/PIaQohfR8Y=
github.com/diktyo-io/networktopology-api v0.0.8-alpha h1:8bSVk6JdUgYd719mXfHgkGZ2eXOfTF436mLu/TQ7WHM=
github.com/diktyo-io/networktopology-api v0.0.8-alpha/go.mod h1:a9YAoBY96ITcSMUTNPJAljMPpDcig91scxJ1smaAhEg=
github.com/diktyo-io/appgroup-api v1.0.0-alpha h1:uN+1y8Rahhs3HoopnCq3jt8r15zbEa8oK3Q+i/HQQkk=
github.com/diktyo-io/appgroup-api v1.0.0-alpha/go.mod h1:Q0UPLA6aFBogLpiOiA9+7sqnlvPES6ge/PIaQohfR8Y=
github.com/diktyo-io/networktopology-api v1.0.0-alpha h1:XHMPI4/9wjhlTd91qeFDKhTE5d9oUPtxeLJJCXd89v4=
github.com/diktyo-io/networktopology-api v1.0.0-alpha/go.mod h1:a9YAoBY96ITcSMUTNPJAljMPpDcig91scxJ1smaAhEg=
github.com/docker/distribution v2.8.1+incompatible h1:Q50tZOPR6T/hjNsyc9g8/syEs6bk8XXApsHjKukMl68=
github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
Expand Down
16 changes: 8 additions & 8 deletions kep/260-network-aware-scheduling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ metadata:
api-approved.kubernetes.io: "To be Defined" # edited manually
controller-gen.kubebuilder.io/version: v0.6.2
creationTimestamp: null
name: appgroups.scheduling.sigs.k8s.io
name: appgroups.scheduling.sigs.x-k8s.io
spec:
group: scheduling.sigs.k8s.io
group: scheduling.sigs.x-k8s.io
names:
kind: AppGroup
listKind: AppGroupList
Expand Down Expand Up @@ -358,7 +358,7 @@ status:

```yaml
# Example App Group CRD spec
apiVersion: scheduling.sigs.k8s.io/v1alpha1
apiVersion: scheduling.sigs.x-k8s.io/v1alpha1
kind: AppGroup
metadata:
name: a1
Expand Down Expand Up @@ -624,9 +624,9 @@ metadata:
api-approved.kubernetes.io: "To be Defined" # edited manually
controller-gen.kubebuilder.io/version: v0.6.2
creationTimestamp: null
name: networktopologies.scheduling.sigs.k8s.io
name: networktopologies.scheduling.sigs.x-k8s.io
spec:
group: scheduling.sigs.k8s.io
group: scheduling.sigs.x-k8s.io
names:
kind: NetworkTopology
listKind: NetworkTopologyList
Expand Down Expand Up @@ -768,7 +768,7 @@ Let's consider the following NetworkTopology CRD as an example:

```yaml
# Example Network CRD
apiVersion: scheduling.sigs.k8s.io/v1alpha1
apiVersion: scheduling.sigs.x-k8s.io/v1alpha1
kind: NetworkTopology
metadata:
name: net-topology-test
Expand Down Expand Up @@ -1146,7 +1146,7 @@ Let's consider the following AppGroup CRD for the appGroup `A1` containing three

```yaml
# Example App Group CRD spec
apiVersion: scheduling.sigs.k8s.io/v1alpha1
apiVersion: scheduling.sigs.x-k8s.io/v1alpha1
kind: AppGroup
metadata:
name: a1
Expand Down Expand Up @@ -1195,7 +1195,7 @@ The NetworkTopology CRD is the following:

```yaml
# Example Network CRD
apiVersion: scheduling.sigs.k8s.io/v1alpha1
apiVersion: scheduling.sigs.x-k8s.io/v1alpha1
kind: NetworkTopology
metadata:
name: net-topology-test
Expand Down
2 changes: 1 addition & 1 deletion manifests/appgroup/appgroup-controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
- apiGroups: ["appgroup.diktyo.k8s.io"]
- apiGroups: ["appgroup.diktyo.x-k8s.io"]
resources: ["appgroups"]
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
---
Expand Down
6 changes: 3 additions & 3 deletions manifests/appgroup/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ kind: ClusterRole
metadata:
name: network-aware-scheduler-handler
rules:
- apiGroups: [ "scheduling.sigs.k8s.io" ]
- apiGroups: [ "scheduling.sigs.x-k8s.io" ]
resources: [ "podgroups", "elasticquotas", "podgroups/status", "elasticquotas/status" ]
verbs: [ "get", "list", "watch", "create", "delete", "update", "patch" ]
- apiGroups: ["appgroup.diktyo.k8s.io"]
- apiGroups: ["appgroup.diktyo.x-k8s.io"]
resources: ["appgroups"]
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
- apiGroups: ["networktopology.diktyo.k8s.io"]
- apiGroups: ["networktopology.diktyo.x-k8s.io"]
resources: ["networktopologies"]
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
---
Expand Down
4 changes: 2 additions & 2 deletions manifests/appgroup/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
api-approved.kubernetes.io: https://github.com/kubernetes-sigs/scheduler-plugins/pull/432 # edited manually
controller-gen.kubebuilder.io/version: v0.11.1
creationTimestamp: null
name: appgroups.appgroup.diktyo.k8s.io
name: appgroups.appgroup.diktyo.x-k8s.io
spec:
group: appgroup.diktyo.k8s.io
group: appgroup.diktyo.x-k8s.io
names:
kind: AppGroup
listKind: AppGroupList
Expand Down
2 changes: 1 addition & 1 deletion manifests/appgroup/example.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Example App Group CRD spec
apiVersion: appgroup.diktyo.k8s.io/v1alpha1
apiVersion: appgroup.diktyo.x-k8s.io/v1alpha1
kind: AppGroup
metadata:
name: a1
Expand Down
2 changes: 1 addition & 1 deletion manifests/appgroup/onlineBoutique-appGroup-example.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: appgroup.diktyo.k8s.io/v1alpha1
apiVersion: appgroup.diktyo.x-k8s.io/v1alpha1
kind: AppGroup
metadata:
name: online-boutique
Expand Down
2 changes: 1 addition & 1 deletion manifests/appgroup/redis-appGroup-example.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: appgroup.diktyo.k8s.io/v1alpha1
apiVersion: appgroup.diktyo.x-k8s.io/v1alpha1
kind: AppGroup
metadata:
name: redis-cluster
Expand Down
6 changes: 3 additions & 3 deletions manifests/networktopology/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ kind: ClusterRole
metadata:
name: network-aware-scheduler-handler
rules:
- apiGroups: [ "scheduling.sigs.k8s.io" ]
- apiGroups: [ "scheduling.sigs.x-k8s.io" ]
resources: [ "podgroups", "elasticquotas", "podgroups/status", "elasticquotas/status" ]
verbs: [ "get", "list", "watch", "create", "delete", "update", "patch" ]
- apiGroups: ["appgroup.diktyo.k8s.io"]
- apiGroups: ["appgroup.diktyo.x-k8s.io"]
resources: ["appgroups"]
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
- apiGroups: ["networktopology.diktyo.k8s.io"]
- apiGroups: ["networktopology.diktyo.x-k8s.io"]
resources: ["networktopologies"]
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
---
Expand Down
4 changes: 2 additions & 2 deletions manifests/networktopology/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
api-approved.kubernetes.io: https://github.com/kubernetes-sigs/scheduler-plugins/pull/432 # edited manually
controller-gen.kubebuilder.io/version: v0.11.1
creationTimestamp: null
name: networktopologies.networktopology.diktyo.k8s.io
name: networktopologies.networktopology.diktyo.x-k8s.io
spec:
group: networktopology.diktyo.k8s.io
group: networktopology.diktyo.x-k8s.io
names:
kind: NetworkTopology
listKind: NetworkTopologyList
Expand Down
2 changes: 1 addition & 1 deletion manifests/networktopology/example.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Example Network CRD
apiVersion: networktopology.diktyo.k8s.io/v1alpha1
apiVersion: networktopology.diktyo.x-k8s.io/v1alpha1
kind: NetworkTopology
metadata:
name: net-topology-test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
- apiGroups: ["appgroup.diktyo.k8s.io"]
- apiGroups: ["appgroup.diktyo.x-k8s.io"]
resources: ["appgroups"]
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
- apiGroups: ["networktopology.diktyo.k8s.io"]
- apiGroups: ["networktopology.diktyo.x-k8s.io"]
resources: ["networktopologies"]
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
---
Expand Down

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.

4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ github.com/coreos/go-systemd/v22/journal
# github.com/davecgh/go-spew v1.1.1
## explicit
github.com/davecgh/go-spew/spew
# github.com/diktyo-io/appgroup-api v0.0.9-alpha
# github.com/diktyo-io/appgroup-api v1.0.0-alpha
## explicit; go 1.16
github.com/diktyo-io/appgroup-api/pkg/apis/appgroup
github.com/diktyo-io/appgroup-api/pkg/apis/appgroup/v1alpha1
Expand All @@ -47,7 +47,7 @@ github.com/diktyo-io/appgroup-api/pkg/generated/informers/externalversions/appgr
github.com/diktyo-io/appgroup-api/pkg/generated/informers/externalversions/appgroup/v1alpha1
github.com/diktyo-io/appgroup-api/pkg/generated/informers/externalversions/internalinterfaces
github.com/diktyo-io/appgroup-api/pkg/generated/listers/appgroup/v1alpha1
# github.com/diktyo-io/networktopology-api v0.0.8-alpha
# github.com/diktyo-io/networktopology-api v1.0.0-alpha
## explicit; go 1.16
github.com/diktyo-io/networktopology-api/pkg/apis/networktopology
github.com/diktyo-io/networktopology-api/pkg/apis/networktopology/v1alpha1
Expand Down

0 comments on commit bd2a5bc

Please sign in to comment.