-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optimize: parse the custom resource definitions method refactoring #1409
Conversation
Config = "Config" | ||
Plugin = "Plugin" | ||
Cluster = "Cluster" | ||
InitConfiguration = "InitConfiguration" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we set those special variable with its decode func together ?
utils/yaml/decode.go
Outdated
"k8s.io/apimachinery/pkg/util/yaml" | ||
) | ||
|
||
var decodeCRDFuncMap = map[string]func(reader io.Reader) (interface{}, error){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those logic to do decode file not match with the pkg name yaml
means, i think we can move it to decode pkg or another.
/test apply |
33f420e
to
08f31fb
Compare
/test apply |
08f31fb
to
58501fa
Compare
Signed-off-by: wb-hjh933779 <[email protected]>
Signed-off-by: wb-hjh933779 <[email protected]>
Signed-off-by: wb-hjh933779 <[email protected]>
Signed-off-by: wb-hjh933779 <[email protected]>
…d after the paragraph Signed-off-by: wb-hjh933779 <[email protected]>
6b8b0fe
to
b285fe9
Compare
ca8136d
to
3d029e5
Compare
…ealerio#1409) * Parse the Custom Resource Definitions method refactoring Signed-off-by: wb-hjh933779 <[email protected]> * move decode.go file to util pkg Signed-off-by: wb-hjh933779 <[email protected]> * add decode v1 cluster function test . Signed-off-by: wb-hjh933779 <[email protected]> * fix originally phase plugin execution Signed-off-by: wb-hjh933779 <[email protected]> * optimize the writing of the label plugin: ignore the spaces before and after the paragraph Signed-off-by: wb-hjh933779 <[email protected]>
Resolve custom resource definition method is too bloated, optimize the structure, support different versions of the resolution of different structures.
kubeadm version v1beta3 structure support later.
Signed-off-by: wb-hjh933779 [email protected]