mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Remove the usage of github access token from the kustomize-stats job
This commit is contained in:
@@ -14,11 +14,6 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/internal/crawl/index"
|
"sigs.k8s.io/kustomize/api/internal/crawl/index"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
githubAccessTokenVar = "GITHUB_ACCESS_TOKEN"
|
|
||||||
retryCount = 3
|
|
||||||
)
|
|
||||||
|
|
||||||
// iterateArr adds each item in arr into countMap.
|
// iterateArr adds each item in arr into countMap.
|
||||||
func iterateArr(arr []string, countMap map[string]int) {
|
func iterateArr(arr []string, countMap map[string]int) {
|
||||||
for _, item := range arr {
|
for _, item := range arr {
|
||||||
|
|||||||
@@ -11,13 +11,8 @@ spec:
|
|||||||
image: gcr.io/haiyanmeng-gke-dev/kustomize_stats:v1
|
image: gcr.io/haiyanmeng-gke-dev/kustomize_stats:v1
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
command: ["/kustomize_stats"]
|
command: ["/kustomize_stats"]
|
||||||
args: ["--index=kustomize", "--kinds=50", "--identifiers=50", "--kustomize-features=50"]
|
args: ["--index=kustomize", "--kinds=51", "--identifiers=50", "--kustomize-features=50"]
|
||||||
env:
|
env:
|
||||||
- name: GITHUB_ACCESS_TOKEN
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: github-access-token
|
|
||||||
key: token
|
|
||||||
- name: ELASTICSEARCH_URL
|
- name: ELASTICSEARCH_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
|
|||||||
Reference in New Issue
Block a user