{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls/comments/183423074","pull_request_review_id":114418113,"id":183423074,"diff_hunk":"@@ -0,0 +1,56 @@\n+---\n+layout: default\n+title:  \"Kubernetes Credentials Provider Plugin : Examples\"\n+---\n+\n+# Credential Examples\n+\n+Credentials are added and updated by adding/updating them as secrets to Kubernetes.\n+The format of the Secret is different depending on the type of credential you wish to expose, but will all have several things in common: \n+- the label  `\"jenkins.io/credentials-type\"` with a type that is known to the plugin (e.g. `certificate`, `secretFile`, `secretText`, `usernamePassword`)\n+- an annotation for the credential description: `\"jenkins.io/credentials-description\" : \"certificate credential from Kubernetes\"`\n+\n+To add or update a Credential just execute the command `kubectl apply -f <nameOfFile.yaml>` \n+\n+The raw yaml for the following examples can be found in the GitHub [repository](https://github.com/jenkinsci/kubernetes-credentials-provider-plugin/tree/master/docs/examples)\n+\n+Where Strings are encoded using base64 the bytes encoded should be from the UTF-8 representation of the String.\n+\n+## UserName / Password credentials\n+\n+The UserName password credentials are probably the most commonly uses.\n+\n+{% highlight ruby linenos %}\n+{% include_relative username-pass.yaml %}\n+{% endhighlight %}\n+\n+\n+## Secret Text\n+\n+{% highlight ruby linenos %}\n+{% include_relative secretText.yaml %}\n+{% endhighlight %}\n+\n+## Secret File\n+\n+{% highlight ruby linenos %}\n+{% include_relative secretFile.yaml %}\n+{% endhighlight %}\n+\n+## Certificates\n+\n+{% highlight ruby linenos %}\n+{% include_relative certificate.yaml %}\n+{% endhighlight %}\n+\n+\n+# Custom field mapping\n+\n+Sometimes you may want the secret to be able to be consumed by another tool as well that has a different requirement for the data fields.","path":"docs/examples/README.md","position":49,"original_position":49,"commit_id":"426deb34761458c09b82340274d8a35f5f7b9922","original_commit_id":"426deb34761458c09b82340274d8a35f5f7b9922","user":{"login":"jstrachan","id":30140,"avatar_url":"https://avatars1.githubusercontent.com/u/30140?v=4","gravatar_id":"","url":"https://api.github.com/users/jstrachan","html_url":"https://github.com/jstrachan","followers_url":"https://api.github.com/users/jstrachan/followers","following_url":"https://api.github.com/users/jstrachan/following{/other_user}","gists_url":"https://api.github.com/users/jstrachan/gists{/gist_id}","starred_url":"https://api.github.com/users/jstrachan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstrachan/subscriptions","organizations_url":"https://api.github.com/users/jstrachan/orgs","repos_url":"https://api.github.com/users/jstrachan/repos","events_url":"https://api.github.com/users/jstrachan/events{/privacy}","received_events_url":"https://api.github.com/users/jstrachan/received_events","type":"User","site_admin":false},"body":"we've no need for a Secret with different mappings that we also want to use as a Credential so don't have any examples am afraid","created_at":"2018-04-23T14:49:38Z","updated_at":"2018-04-23T14:49:38Z","html_url":"https://github.com/jenkinsci/kubernetes-credentials-provider-plugin/pull/11#discussion_r183423074","pull_request_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls/11","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls/comments/183423074"},"html":{"href":"https://github.com/jenkinsci/kubernetes-credentials-provider-plugin/pull/11#discussion_r183423074"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls/11"}},"in_reply_to_id":183414188},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls/11","id":183444833,"html_url":"https://github.com/jenkinsci/kubernetes-credentials-provider-plugin/pull/11","diff_url":"https://github.com/jenkinsci/kubernetes-credentials-provider-plugin/pull/11.diff","patch_url":"https://github.com/jenkinsci/kubernetes-credentials-provider-plugin/pull/11.patch","issue_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/issues/11","number":11,"state":"open","locked":false,"title":"Add bucket load of documentation.","user":{"login":"jtnord","id":494726,"avatar_url":"https://avatars1.githubusercontent.com/u/494726?v=4","gravatar_id":"","url":"https://api.github.com/users/jtnord","html_url":"https://github.com/jtnord","followers_url":"https://api.github.com/users/jtnord/followers","following_url":"https://api.github.com/users/jtnord/following{/other_user}","gists_url":"https://api.github.com/users/jtnord/gists{/gist_id}","starred_url":"https://api.github.com/users/jtnord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtnord/subscriptions","organizations_url":"https://api.github.com/users/jtnord/orgs","repos_url":"https://api.github.com/users/jtnord/repos","events_url":"https://api.github.com/users/jtnord/events{/privacy}","received_events_url":"https://api.github.com/users/jtnord/received_events","type":"User","site_admin":false},"body":"move developer docs under the documentation and add a bucket load of docs.","created_at":"2018-04-23T14:02:21Z","updated_at":"2018-04-23T14:49:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f6eea0664b4e8715c48f84698a878359edbd7cd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls/11/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls/11/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/issues/11/comments","statuses_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/statuses/426deb34761458c09b82340274d8a35f5f7b9922","head":{"label":"jtnord:moar_docs","ref":"moar_docs","sha":"426deb34761458c09b82340274d8a35f5f7b9922","user":{"login":"jtnord","id":494726,"avatar_url":"https://avatars1.githubusercontent.com/u/494726?v=4","gravatar_id":"","url":"https://api.github.com/users/jtnord","html_url":"https://github.com/jtnord","followers_url":"https://api.github.com/users/jtnord/followers","following_url":"https://api.github.com/users/jtnord/following{/other_user}","gists_url":"https://api.github.com/users/jtnord/gists{/gist_id}","starred_url":"https://api.github.com/users/jtnord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtnord/subscriptions","organizations_url":"https://api.github.com/users/jtnord/orgs","repos_url":"https://api.github.com/users/jtnord/repos","events_url":"https://api.github.com/users/jtnord/events{/privacy}","received_events_url":"https://api.github.com/users/jtnord/received_events","type":"User","site_admin":false},"repo":{"id":125401392,"name":"kubernetes-credentials-provider-plugin","full_name":"jtnord/kubernetes-credentials-provider-plugin","owner":{"login":"jtnord","id":494726,"avatar_url":"https://avatars1.githubusercontent.com/u/494726?v=4","gravatar_id":"","url":"https://api.github.com/users/jtnord","html_url":"https://github.com/jtnord","followers_url":"https://api.github.com/users/jtnord/followers","following_url":"https://api.github.com/users/jtnord/following{/other_user}","gists_url":"https://api.github.com/users/jtnord/gists{/gist_id}","starred_url":"https://api.github.com/users/jtnord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtnord/subscriptions","organizations_url":"https://api.github.com/users/jtnord/orgs","repos_url":"https://api.github.com/users/jtnord/repos","events_url":"https://api.github.com/users/jtnord/events{/privacy}","received_events_url":"https://api.github.com/users/jtnord/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jtnord/kubernetes-credentials-provider-plugin","description":"just a temproary repo that will be trashed as soon as the code moves elsewhere","fork":true,"url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin","forks_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/forks","keys_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/teams","hooks_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/hooks","issue_events_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/events","assignees_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/tags","blobs_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/languages","stargazers_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/stargazers","contributors_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/contributors","subscribers_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/subscribers","subscription_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/subscription","commits_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/merges","archive_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/downloads","issues_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jtnord/kubernetes-credentials-provider-plugin/deployments","created_at":"2018-03-15T17:12:51Z","updated_at":"2018-03-15T17:12:53Z","pushed_at":"2018-04-23T14:01:11Z","git_url":"git://github.com/jtnord/kubernetes-credentials-provider-plugin.git","ssh_url":"git@github.com:jtnord/kubernetes-credentials-provider-plugin.git","clone_url":"https://github.com/jtnord/kubernetes-credentials-provider-plugin.git","svn_url":"https://github.com/jtnord/kubernetes-credentials-provider-plugin","homepage":null,"size":63,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"1336d995149edb5d7232f30cc09e7908cc36ec96","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars0.githubusercontent.com/u/107424?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":125394140,"name":"kubernetes-credentials-provider-plugin","full_name":"jenkinsci/kubernetes-credentials-provider-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars0.githubusercontent.com/u/107424?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/kubernetes-credentials-provider-plugin","description":"Credentials provider that allows storing credentials in Kubernetes","fork":false,"url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin","forks_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/deployments","created_at":"2018-03-15T16:14:49Z","updated_at":"2018-04-23T11:23:48Z","pushed_at":"2018-04-23T14:02:22Z","git_url":"git://github.com/jenkinsci/kubernetes-credentials-provider-plugin.git","ssh_url":"git@github.com:jenkinsci/kubernetes-credentials-provider-plugin.git","clone_url":"https://github.com/jenkinsci/kubernetes-credentials-provider-plugin.git","svn_url":"https://github.com/jenkinsci/kubernetes-credentials-provider-plugin","homepage":"","size":74,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":3,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls/11"},"html":{"href":"https://github.com/jenkinsci/kubernetes-credentials-provider-plugin/pull/11"},"issue":{"href":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/issues/11"},"comments":{"href":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/kubernetes-credentials-provider-plugin/statuses/426deb34761458c09b82340274d8a35f5f7b9922"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"jstrachan"}}