-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: creating a robot account for each project and adding imagepullse… (
#34) Creating imagePullSecret for team docker image repository
- Loading branch information
1 parent
6143dc8
commit 596152e
Showing
6 changed files
with
136 additions
and
36 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// cSpell Settings | ||
{ | ||
// Version of the setting file. Always 0.1 | ||
"version": "0.1", | ||
// language - current active spelling language | ||
"language": "en", | ||
// words - list of words to be always considered correct | ||
"words": [ | ||
"camelcase", | ||
"creds", | ||
"kubernetes", | ||
"openid", | ||
"otomi", | ||
"redkubes", | ||
"robotv" | ||
], | ||
// flagWords - list of words to be always considered incorrect | ||
// This is useful for offensive words and common spelling errors. | ||
// For example "hte" should be "the" | ||
"flagWords": [ | ||
"hte" | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,15 +126,15 @@ export async function createPullSecret({ | |
username, | ||
password, | ||
email: '[email protected]', | ||
auth: username + Buffer.from(password).toString('base64'), | ||
auth: Buffer.from(`${username}:${password}`).toString('base64'), | ||
}, | ||
}, | ||
} | ||
// create the secret | ||
const secret = { | ||
...new V1Secret(), | ||
metadata: { ...new V1ObjectMeta(), name }, | ||
type: 'docker-registry', | ||
type: 'kubernetes.io/dockerconfigjson', | ||
data: { | ||
'.dockerconfigjson': Buffer.from(JSON.stringify(data)).toString('base64'), | ||
}, | ||
|
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