Skip to content

Add DomainClaimed Condition - #9952

Merged
knative-prow-robot merged 2 commits into
knative:masterfrom
julz:domainmappingclaim
Nov 2, 2020
Merged

knative-prow-robot merged 2 commits into
knative:masterfrom
julz:domainmappingclaim

Conversation

@julz

@julz julz commented Oct 27, 2020 •

Copy link
Copy Markdown
Contributor

Part of #9713.

Adds the ClusterDomainClaim CRD and type, and adds a new DomainMappingConditionDomainClaimed condition to DomainMapping to surface whether the ClusterDomainClaim was/wasn't successfully "claimed" (i.e. created).

Moved the ClusterDomainClaim CRD into networking in knative/networking#254. This PR now just introduces the DomainClaimed condition to DomainMapping.

/assign @mattmoor @vagababov

@google-cla google-cla Bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 27, 2020
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/API API objects and controllers labels Oct 27, 2020
@julz julz mentioned this pull request Oct 27, 2020
13 of 14 tasks
@julz

julz commented Oct 27, 2020

Copy link
Copy Markdown
Contributor Author

oops, guess I messed up a rebase here, one minute.. :D

@julz
julz force-pushed the domainmappingclaim branch from 6cf9fdc to 461e2fd Compare October 27, 2020 15:02
@julz

julz commented Oct 27, 2020

Copy link
Copy Markdown
Contributor Author

.. that should fix it 🤞.

@codecov

codecov Bot commented Oct 27, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #9952 into master will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9952      +/-   ##
==========================================
+ Coverage   87.84%   87.87%   +0.03%     
==========================================
  Files         184      184              
  Lines        8681     8686       +5     
==========================================
+ Hits         7626     7633       +7     
+ Misses        802      801       -1     
+ Partials      253      252       -1     
Impacted Files Coverage Δ
pkg/apis/serving/v1alpha1/domainmapping_types.go 100.00% <ø> (ø)
...g/apis/serving/v1alpha1/domainmapping_lifecycle.go 80.00% <100.00%> (+3.80%) ⬆️
pkg/reconciler/domainmapping/reconciler.go 85.71% <100.00%> (+0.34%) ⬆️
pkg/reconciler/autoscaling/kpa/scaler.go 90.00% <0.00%> (+1.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e4e3db2...0283e36. Read the comment docs.

@julz

julz commented Oct 27, 2020

Copy link
Copy Markdown
Contributor Author

d'oh, that's a legit failure 'cos I pulled too much out while trying to make this a small PR. Fixed.

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: domainclaims.serving.knative.dev

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like a networking internal thing to me 🤔

Generally stuff in serving.knative.dev is public API surface, so I'd definitely avoid it here.

cc @tcnghia @dprotaso for thoughts

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, ack that externally visible might be wrong (although I think we do plan to let operators interact with it, at least in the multitenant case, which does argue more for visible/serving..). Also not totally sure networking is right since it's a bit higher level than ingress etc 🤔.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack the operator element. Perhaps networking.knative.dev (no internal) is a middle ground...?

cc @knative/networking-wg-leads for thoughts.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

networking sounds good to me. networking does not just imply ingress. We also use networking for serverlessservice CRD https://github.com/knative/serving/blob/master/config/core/300-resources/serverlessservice.yaml#L18

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Serverlessservice is a good point. Ok, unless someone shouts I'll rework this to be in networking tomorrow. It's alpha so we can always move it back to serving if we change our mind later anyway.

@julz
julz force-pushed the domainmappingclaim branch from b77a06d to 1e487c6 Compare November 2, 2020 11:13
@knative-prow-robot knative-prow-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 2, 2020
@julz
julz force-pushed the domainmappingclaim branch from 1e487c6 to 80cbf83 Compare November 2, 2020 11:13
@julz julz changed the title Add ClusterDomainClaim CRD and type Add DomainClaimed Condition Nov 2, 2020
@julz

julz commented Nov 2, 2020

Copy link
Copy Markdown
Contributor Author

Rebased on knative/networking#254 so this PR now just introduces the new DomainClaimed condition.

@mattmoor mattmoor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 2, 2020
@knative-prow-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: julz, mattmoor

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 2, 2020
@knative-prow-robot
knative-prow-robot merged commit 9741ff4 into knative:master Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/API API objects and controllers cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants