On Wed, Aug 15, 2018 at 10:33 AM Clayton Coleman <
ccol...@redhat.com> wrote:
>
> > On Aug 15, 2018, at 1:29 PM, 'Tim Hockin' via kubernetes-api-reviewers <
kubernetes-a...@googlegroups.com> wrote:
> >
> > Hi all,
> >
> > As part of the API review for volume snapshots
> > (
https://github.com/kubernetes-sigs/architecture-tracking/issues/44 ,
> > kubernetes/community#2335 , kubernetes-csi/external-snapshotter#6)
> > there a re a few topics I was not sure on and wanted to ask for a
> > consult from another reviewer or reviewers.
> >
> > 1) Proposal adds SnapshotClass independent of StorageClass. The
> > argument is that there could be more than one class of snapshot for a
> > given storage class (e.g. retention time, etc). I'm OK with that. It
> > has a side effect of breaking a "nice" property I observed before
> > around API groups.
> >
> > The existing type (StorageClass) is an admin-centric type. The new
> > types (except SnapshotClass) are user-centric. Having them in
> > different API groups seems OK. Addign SnapshotClass to the
> > user-centric group is wrong, but I feel disinclined to make a third
> > group, in part because this user/admin split isn't codified anywhere
> > or followed anywhere else and because there is no naming convention
> > around it.
> >
> > Thoughts? Is that a pattern we want to endorse or am I over-training
> > on a side-effect?
>
>
> By analogy, pod and node are in the same API group but have different
> audiences. The same for PV and PVC. So apigroups typically aren’t
> expected to define user audience, but instead are about a class of
> related functionality (in the large).
All of which pre-date apigroups :)
The question is whether we think there's a meaningful "edge" that we
want to strengthen.
> > 2) The act of creating a snapshot can fail asynchronously and the
> > design wants to NOT retry (or not indefinitely). I'm on the fence
> > about that aspect, and am inclined to trust the dev team. The
> > question is in reporting the error state. An event is sub-par because
> > it is a terminal condition. It won't be retried, so event-carried
> > data will eventually age-out. They have added an "error" field which
> > indicates the existence of an error and details about it.
> >
> > I don't know if we have other precedents of this pattern or some other
> > way to handle this. It could be a Condition, but it sort of goes
> > against the recent edits around Condition conventions being an
> > extension point.
>
>
> Pods and jobs that are restartnever have a terminal phase (arguably
> could be a Boolean). Is the analogy between Jobs and Snapshots
> sufficient?
Well, we tell people not to use "Phase" in APIs. Jobs seems apropos.
I see it has status fields to convey the final situation, so I guess
error struct here seems OK.
> >
> > Thoughts?
> >
> > Other than these two, I have given some minor feedback that they will
> > incorporate, and then I am satisfied.
> >
> > Tim
> >
> > --
> > You received this message because you are subscribed to the Google Groups "kubernetes-api-reviewers" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to
kubernetes-api-rev...@googlegroups.com.
> > To post to this group, send email to
kubernetes-a...@googlegroups.com.
> > To view this discussion on the web visit
https://groups.google.com/d/msgid/kubernetes-api-reviewers/CAO_RewapCRkfzjcjHRy6G2-fBJp%3DeakM-ZEf4KX51k_YG5hoVQ%40mail.gmail.com.
> > For more options, visit
https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "kubernetes-api-reviewers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
kubernetes-api-rev...@googlegroups.com.
> To post to this group, send email to
kubernetes-a...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/kubernetes-api-reviewers/CAH16ShLRm_Q9d0J_GC%2B3V16qWOi6nq%3DaZK3%3Dv8W8jzuQ6xAiTA%40mail.gmail.com.
> For more options, visit
https://groups.google.com/d/optout.