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

Add k8s service account under identity spec #1128

Merged
merged 5 commits into from
May 27, 2020

Conversation

grac3gao-zz
Copy link
Contributor

Fixes #

Proposed Changes

  • in v1beta1, add .serviceAccountName remove gsa
  • in v1alpha1, add .serviceAccountName, keep gsa
  • fix some UT

Release Note

Add k8s service account and and remove gsa under identity spec in v1beta1.
Add k8s service account and and keep gsa under identity spec in v1alpha1.

Docs

@grac3gao-zz grac3gao-zz requested a review from Harwayne May 26, 2020 17:48
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: grac3gao

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

@googlebot googlebot added the cla: yes (override cla status due to multiple authors bug) label May 26, 2020
Copy link
Contributor

@Harwayne Harwayne left a comment

Choose a reason for hiding this comment

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

/lgtm

@Harwayne
Copy link
Contributor

/retest

@nachocano
Copy link
Member

nachocano commented May 26, 2020 via email

@grac3gao-zz
Copy link
Contributor Author

/retest

@nachocano
Copy link
Member

/lgtm

Copy link
Contributor

@Harwayne Harwayne left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-test-reporter-robot

The following jobs failed:

Test name Triggers Retries
pull-google-knative-gcp-wi-tests pull-google-knative-gcp-wi-tests 1/3

Automatically retrying due to test flakiness...
/test pull-google-knative-gcp-wi-tests

Copy link
Contributor

@Harwayne Harwayne left a comment

Choose a reason for hiding this comment

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

/lgtm

@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/convert/conversion_helper.go 96.4% 94.3% -2.1
pkg/apis/duck/v1alpha1/credentials.go 100.0% 80.0% -20.0
pkg/apis/events/v1alpha1/cloudauditlogssource_validation.go 88.9% 94.7% 5.8
pkg/apis/events/v1alpha1/cloudbuildsource_validation.go 88.2% 88.9% 0.7
pkg/apis/events/v1alpha1/cloudpubsubsource_validation.go 93.1% 93.3% 0.2
pkg/apis/events/v1alpha1/cloudschedulersource_validation.go 95.2% 100.0% 4.8
pkg/apis/events/v1alpha1/cloudstoragesource_validation.go 94.1% 100.0% 5.9
pkg/apis/intevents/v1alpha1/pullsubscription_conversion.go Do not exist 82.6%
pkg/apis/intevents/v1alpha1/pullsubscription_types.go Do not exist 92.9%
pkg/apis/intevents/v1alpha1/topic_types.go Do not exist 100.0%
pkg/apis/intevents/v1beta1/pullsubscription_types.go Do not exist 92.9%
pkg/apis/intevents/v1beta1/topic_types.go Do not exist 100.0%
pkg/apis/messaging/v1alpha1/channel_conversion.go Do not exist 93.9%
pkg/apis/messaging/v1alpha1/channel_defaults.go 100.0% 88.9% -11.1
pkg/apis/messaging/v1alpha1/channel_validation.go 84.2% 90.0% 5.8
pkg/reconciler/intevents/pullsubscription/resources/receive_adapter.go Do not exist 82.9%
pkg/reconciler/intevents/resources/pullsubscription.go Do not exist 100.0%
pkg/reconciler/intevents/resources/topic.go Do not exist 100.0%
pkg/reconciler/intevents/topic/resources/publisher.go Do not exist 76.5%
pkg/reconciler/messaging/channel/channel.go 79.6% 79.9% 0.3
pkg/reconciler/pubsub/pullsubscription/resources/receive_adapter.go 87.5% 83.3% -4.2
pkg/reconciler/pubsub/topic/resources/publisher.go 85.7% 77.8% -7.9

@nachocano
Copy link
Member

nachocano commented May 27, 2020 via email

@knative-prow-robot knative-prow-robot merged commit d3ddec0 into google:master May 27, 2020
ian-mi pushed a commit to ian-mi/knative-gcp that referenced this pull request May 29, 2020
* add k8s service account

* change

* add intevents

* add channel

* change channel
@grac3gao-zz grac3gao-zz deleted the ksa branch June 4, 2020 20:24
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/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants