https://github.com/jenkinsci/gitlab-kubernetes-credentials-plugin
gitlab-kubernetes-credentials-plugin
https://github.com/jenkinsci/gitlab-kubernetes-credentials-plugin
gitlab kubernetes
Last synced: 5 months ago
JSON representation
gitlab-kubernetes-credentials-plugin
- Host: GitHub
- URL: https://github.com/jenkinsci/gitlab-kubernetes-credentials-plugin
- Owner: jenkinsci
- License: mit
- Created: 2022-11-02T08:26:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-28T04:16:20.000Z (5 months ago)
- Last Synced: 2025-01-28T05:20:47.633Z (5 months ago)
- Topics: gitlab, kubernetes
- Language: Java
- Homepage: https://plugins.jenkins.io/gitlab-kubernetes-credentials/
- Size: 336 KB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# gitlab-kubernetes-credentials-plugin
[](https://ci.jenkins.io/job/Plugins/job/gitlab-kubernetes-credentials-plugin/job/main/)
[](https://ci.jenkins.io/job/Plugins/job/gitlab-kubernetes-credentials-plugin/job/main)
[](https://ci.jenkins.io/job/Plugins/job/gitlab-kubernetes-credentials-plugin/job/main)
[](https://plugins.jenkins.io/gitlab-kubernetes-credentials)
[](https://github.com/jenkinsci/gitlab-kubernetes-credentials-plugin/releases/latest)
[](https://github.com/jenkinsci/gitlab-kubernetes-credentials-plugin/blob/master/LICENSE.md)
[](https://plugins.jenkins.io/gitlab-kubernetes-credentials)# Introduction
This plugin provides an extension for the [kubernetes-credentials-provider-plugin](https://github.com/jenkinsci/kubernetes-credentials-provider-plugin)
plugin, and the [gitlab-branch-source-plugin](https://github.com/jenkinsci/gitlab-branch-source-plugin) that extend the kubernetes credentials provider to create the special credential type required by the gitlab-branch-source when interacting with a GitLab server instance.## Usage
This plugin consumes extends the kubernetes-credentials-provider-plugin to consume kubernetes secrets with a `"jenkins.io/credentials-type"` of `"gitlabToken"`. These secrets need to have a data property `"text"` that contains a base64 encoded `bearer token` for gitlab server.
### Example
```
apiVersion: v1
data:
text: c3VwZXJkdXBlcnNlY3JldA==
kind: Secret
metadata:
annotations:
jenkins.io/credentials-description: The GitLab token for creating web hooks
labels:
jenkins.io/credentials-type: gitlabToken
name: gitlab-hook-token
namespace: jenkins-demo
type: Opaque
```
## LICENSELicensed under MIT, see [LICENSE](LICENSE)