Skip to content

Verify K8s 1.11 fixes our generation woes #642

Closed

Description

@mattmoor

We currently manipulate a Generation field ourselves in each of the Elafros resource (e.g.).

Check whether this landed in 1.10, and if so remove this logic.

1.10 is available to Alpha GKE clusters now: https://cloud.google.com/kubernetes-engine/release-notes

Since this involves updating the version of our K8s dependency, be sure to update the getting started documentation.

Activity

  1. added
    kind/feature
    area/API
    on Apr 13, 2018
  2. modified the milestones: , on Apr 13, 2018
  3. mattmoor commented on Apr 18, 2018

    @mattmoor
    ContributorAuthor

    We've hit a few problems using 1.10 in GKE Alpha clusters, so my optimism that we'd resolve this in M4 is subsiding.

  4. dprotaso commented on Apr 19, 2018

    @dprotaso
    Member

    You can assign this to @bsnchan and I (@dprotaso) - we'll update our self hosted cluster to 1.10.1

    This issue kubernetes/kubernetes#62595 highlights that enabling subresources fixes the generation woes

  5. mattmoor commented on Apr 19, 2018

    @mattmoor
    ContributorAuthor
  6. bsnchan commented on Apr 25, 2018

    @bsnchan
    Contributor

    @mattmoor - Since this repo is not yet public, are we okay if this is a breaking change for CRD objects that do not use sub-resources?

  7. bsnchan commented on May 1, 2018

    @bsnchan
    Contributor

    It looks like enabling the feature gate flag to be CustomResourceSubresources=true (which is required for letting the api bump the generation) will break monitoring. The prometheus-operator pod will fail to create the CoreOS CRDs with the following error: https://gist.github.com/bsnchan/1f721c6e9f7aa989cb0c070ed305bd02

    It's not obvious in the gist but the CRD validation schema is including an extra Required property
    ie.

    apiVersion: apiextensions.k8s.io/v1beta1
    kind: CustomResourceDefinition
    spec:
      ...
      validation:
       # openAPIV3Schema is the schema for validating custom objects.
        openAPIV3Schema:
          required: ["spec"] # this causes the break
          properties: ...
    

    Generated here: https://github.com/coreos/prometheus-operator/blob/master/pkg/client/monitoring/v1/openapi_generated.go#L86

    This fails validation in the API server here: https://github.com/kubernetes/apiextensions-apiserver/blob/master/pkg/apis/apiextensions/validation/validation.go#L211

    /cc @mdemirhan

  8. dprotaso commented on May 23, 2018

    @dprotaso
    Member

    Blocked on prometheus-operator/prometheus-operator#1293 (if we want to keep the prometheus operator)

  9. dprotaso commented on May 23, 2018

    @dprotaso
    Member

    @mattmoor am I able to add a blocked label somehow?

  10. mattmoor commented on May 24, 2018

    @mattmoor
    ContributorAuthor

    I think that this has been verified, but 1.10 hasn't landed and the likelihood of all of the issues being resolved and the associated PRs landing in M5 is slim, moving to M6 (where I hope it will land very early!).

  11. modified the milestones: , on May 24, 2018
  12. bsnchan commented on Jun 28, 2018

    @bsnchan
    Contributor

    /label k8s-1.11

  13. changed the title [-]Verify K8s 1.10 fixes our generation woes[/-] [+]Verify K8s 1.11 fixes our generation woes[/+] on Jul 8, 2018
  14. removed this from the milestone on Oct 31, 2018
  15. mattmoor commented on Nov 6, 2018

    @mattmoor
    ContributorAuthor

    @dprotaso @bsnchan This should be unblocked. GKE has 1.11, so we can actually test with sub-resources 🎉

  16. modified the milestone: Serving 0.3 on Nov 20, 2018
  17. mattmoor commented on Dec 19, 2018

    @mattmoor
    ContributorAuthor

    I feel like this has been verified, and the adoption should be tracked by: #643 or another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/APIkind/feature

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions