API machinery
Recommended reading: kubernetes API changes doc
To generate the API code simply run to update the generated API machinery code (conversion functions). Notethat make apimachinery
(currently) only updates the autogenerated code; it does not trigger a rebuild, hence theneed for .
Adding a field
- Add the field to pkg/apis/kops, and then also to each versioned copy: pkg/apis/kops/v1alpha1, pkg/apis/kops/v1alpha2, etc
- You likely want to update the validation logic
Currently, the apimachinery code we check in is relatively stable. However, when the generated code is large,it is often considered good manners to your code reviewer to split a PR into multiple commits: one with theactual changes, and then a second commit with the autogenerated code.