Skip to content
This repository has been archived by the owner on Jun 19, 2022. It is now read-only.

Add Workload Identity status condition #714

Merged
merged 9 commits into from
Mar 27, 2020

Conversation

grac3gao-zz
Copy link
Contributor

@grac3gao-zz grac3gao-zz commented Mar 26, 2020

Based on @nachocano #703
Fixes #668

Proposed Changes

Release Note


Docs

@googlebot googlebot added the cla: yes (override cla status due to multiple authors bug) label Mar 26, 2020
@grac3gao-zz grac3gao-zz changed the title status Add Workload Identity status condition Mar 26, 2020
# Conflicts:
#	pkg/apis/duck/v1alpha1/pubsub_types.go
#	pkg/reconciler/events/auditlogs/auditlogs_test.go
#	pkg/reconciler/events/pubsub/pubsub_test.go
#	pkg/reconciler/events/scheduler/scheduler_test.go
#	pkg/reconciler/events/storage/storage_test.go
@grac3gao-zz
Copy link
Contributor Author

/retest

pkg/apis/duck/v1alpha1/identity_lifecycle.go Outdated Show resolved Hide resolved
pkg/apis/duck/v1alpha1/identity_types.go Outdated Show resolved Hide resolved
pkg/apis/duck/v1alpha1/identity_types.go Outdated Show resolved Hide resolved
pkg/apis/duck/v1alpha1/identity_types.go Show resolved Hide resolved
pkg/apis/duck/v1alpha1/identity_types.go Outdated Show resolved Hide resolved
pkg/apis/duck/v1alpha1/identity_types.go Outdated Show resolved Hide resolved
pkg/apis/duck/v1alpha1/identity_types.go Show resolved Hide resolved
pkg/apis/duck/v1alpha1/identity_types.go Show resolved Hide resolved
@grac3gao-zz
Copy link
Contributor Author

Ready to review.

@nachocano
Copy link
Member

nachocano commented Mar 26, 2020

Made a pass, just a few nits @grac3gao
I'm wondering if the secret should actually be made part of IdentitySpec as well... But that is something that can be done later on, if needed. Something to keep in mind...

@grac3gao-zz
Copy link
Contributor Author

/retest

@nachocano
Copy link
Member

nachocano commented Mar 27, 2020 via email

@grac3gao-zz
Copy link
Contributor Author

@nachocano Tried several deletions ways, finally worked.

@nachocano
Copy link
Member

@grac3gao add those TODOs @Harwayne suggested and the explanation of why we set the ready False in the WorkloadIdentityFailed condition, and we get this one in!

/approve

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: grac3gao, nachocano

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

The pull request process is described here

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-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-google-knative-gcp-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/duck/v1alpha1/identity_lifecycle.go Do not exist 100.0%
pkg/apis/duck/v1alpha1/identity_types.go Do not exist 100.0%
pkg/apis/events/v1alpha1/cloudauditlogssource_types.go 71.4% 75.0% 3.6
pkg/apis/events/v1alpha1/cloudpubsubsource_types.go 84.6% 86.7% 2.1
pkg/apis/events/v1alpha1/cloudschedulersource_types.go 66.7% 71.4% 4.8
pkg/apis/events/v1alpha1/cloudstoragesource_types.go 66.7% 71.4% 4.8
pkg/reconciler/events/auditlogs/auditlogs.go 92.2% 89.6% -2.6
pkg/reconciler/events/pubsub/pubsub.go 76.7% 70.0% -6.7
pkg/reconciler/events/scheduler/scheduler.go 84.3% 81.4% -2.9
pkg/reconciler/events/storage/storage.go 82.3% 79.7% -2.5
pkg/reconciler/identity/reconciler.go 76.3% 74.1% -2.2
pkg/reconciler/messaging/channel/channel.go 80.9% 79.6% -1.3

@grac3gao-zz
Copy link
Contributor Author

@nachocano Just added those things. And I forgot to update the serviceAccountName in the status, so also include it.

@nachocano
Copy link
Member

/lgtm

Thanks @grac3gao !!! Great work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved cla: yes (override cla status due to multiple authors bug) lgtm size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding a status condition for workload identity
7 participants