-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ConfigMap which can contain triggers info
As of now we fetch version of triggers through labels present on the deployments which is read by tools such as `tkn cli` and display the version. This version may not be displayed to users if they don't have permission to view the deployment. In this commit we are adding 1. A `ConfigMap` which contains version information. 2. RBAC which will give appropriate permissions to view the ConfigMap irrespective of whether user is has permission to view other objects in that namespace or not. Signed-off-by: vinamra28 <[email protected]>
- Loading branch information
1 parent
6c14687
commit def39b9
Showing
3 changed files
with
70 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright 2021 The Tekton Authors | ||
# | ||
# 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 | ||
# | ||
# https://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. | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: triggers-info | ||
namespace: tekton-pipelines | ||
labels: | ||
app.kubernetes.io/instance: default | ||
app.kubernetes.io/part-of: tekton-triggers | ||
data: | ||
# Contains triggers version which can be queried by external | ||
# tools such as CLI. Elevated permissions are already given to | ||
# this ConfigMap such that even if we don't have access to | ||
# other resources in the namespace we still can have access to | ||
# this ConfigMap. | ||
version: "devel" |