-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add informer for service account to workload - add informers for [Cluster]Role[Binding] - Handle service account related errors: - avoid triggering retry and fallback - Handle service account related errors: - log - avoid triggering retry and fallback - Move clientBuilder out of workload/component.go - we will relax this in future work once we have more fallback mechanisms - Fix omitempty test on Workload - Fix for repository losing logger - Stamp Deliverable using named service account - Add informers for service account / roles etc for Deliverable - Removed unused ctx, fix errors in tests - Lint - Fall back to default ServiceAccount in namespace if not specified on Workload or Deliverable - Default to default service account - Update setup script to wait longer for tests to pass - add tests for workload map functions - Add map_functions tests - Address reviewers comments about rbac roles - Address reviewers comments about imports - Fix typo in rbac.yaml - Address reviewers comment about pulling revision off outputs in tekton task Co-authored-by: Ciro S. Costa <[email protected]> Co-authored-by: Marty Spiewak <[email protected]> Co-authored-by: Todd Ritchie <[email protected]> Co-authored-by: Sam Coward <[email protected]> Co-authored-by: Joshua Winters <[email protected]>
- Loading branch information
1 parent
8a685fc
commit 8273e39
Showing
105 changed files
with
6,725 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,8 @@ spec: | |
- value | ||
type: object | ||
type: array | ||
serviceAccountName: | ||
type: string | ||
source: | ||
properties: | ||
git: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
examples/source-to-knative-service/developer/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright 2021 VMware | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
#@ load("@ytt:data", "data") | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: #@ data.values.service_account_name | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: workload-role-binding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: workload-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: #@ data.values.service_account_name | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: workload-role | ||
rules: | ||
- apiGroups: | ||
- source.toolkit.fluxcd.io | ||
- kpack.io | ||
- kapp.k14s.io/v1alpha1 | ||
- kappctrl.k14s.io | ||
- serving.knative.dev/v1 | ||
- carto.run | ||
- tekton.dev | ||
resources: | ||
- gitrepositories | ||
- images | ||
- configs | ||
- apps | ||
- services | ||
- runnables | ||
- tasks | ||
- taskruns | ||
verbs: | ||
- list | ||
- create | ||
- update | ||
- delete | ||
- patch | ||
- watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.