AmitKumarDas / fun-with-programming

ABC - Always Be Coding
2 stars 2 forks source link

r-0024 #73

Closed AmitKumarDas closed 1 year ago

AmitKumarDas commented 3 years ago
// tags: controller, library
//
// https://github.com/banzaicloud/operator-tools
// used by
// https://github.com/banzaicloud/imps
AmitKumarDas commented 3 years ago
// tags: crd check
//
// https://github.com/banzaicloud/operator-tools/tree/master/pkg/crd
AmitKumarDas commented 3 years ago
// [tags]
// - parse multi yamls from single yaml
// - parser uses runtime.Scheme
// - k8s object modifiers as functional implementations
// - overlay, patch via replace or remove
//
// til: code generation,
//
// https://github.com/banzaicloud/operator-tools/tree/master/pkg/resources
AmitKumarDas commented 3 years ago
// [til]
// - structural merge patch i.e. SMP
// - SMP is quite declarative
// - SMP can be used in controller code
// - SMP can be faked into 3-way merge with original same as modified
// - 3-way merge: 
//   - last applied (i.e. original), desired (i.e. overrides / modified), observed (i.e. current)
// - readable testing
//
// https://github.com/banzaicloud/operator-tools/blob/master/pkg/merge/merge.go
// https://github.com/banzaicloud/operator-tools/blob/master/pkg/merge/merge_test.go
AmitKumarDas commented 3 years ago
// [tags]
// - code generation via kubebuilder
// - k8s core resources' specs as subset
// - nice strategy to embed into custom resource spec 
//
// https://github.com/banzaicloud/operator-tools/tree/master/pkg/typeoverride