forked from kosmos-io/kosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kosmos-io#46 from wangyizhi1/main
feat: elevate adapter common configuration
- Loading branch information
Showing
4 changed files
with
169 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package k8sadapter | ||
|
||
import ( | ||
v1 "k8s.io/client-go/informers/core/v1" | ||
"k8s.io/client-go/kubernetes" | ||
|
||
"github.com/kosmos.io/kosmos/pkg/knode-manager/utils/manager" | ||
) | ||
|
||
type AdapterConfig struct { | ||
Client kubernetes.Interface | ||
Master kubernetes.Interface | ||
|
||
PodInformer v1.PodInformer | ||
NamespaceInformer v1.NamespaceInformer | ||
NodeInformer v1.NodeInformer | ||
ConfigmapInformer v1.ConfigMapInformer | ||
SecretInformer v1.SecretInformer | ||
ServiceInformer v1.ServiceInformer | ||
|
||
ResourceManager *manager.ResourceManager | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters