openyurtio / yurt-edgex-manager

yurt-edgex-manager is an operator for managing EdgeX lifecycle(including deploy, delete, update) in OpenYurt cluster.
Apache License 2.0
18 stars 24 forks source link

[Feature] Add webhook for edgex #22

Closed gnunu closed 2 years ago

gnunu commented 2 years ago

Add defaulting and validating webhooks for edgex-manger.

lwmqwer commented 2 years ago

Add defaulting and validating webhooks for edgex-manger.

The webhook default part should set the version to jakarda and ServiceType to clusterip

The validation part should verify the version is hanoi or jakarda, poolname is a right nodepool name and no other edgex in the same nodepool Could refer this PR https://github.com/openyurtio/yurt-edgex-manager/pull/17 Service type is clusterip or nodeport.

Add some case in the e2e is a great practice.