apiVersion: batch/v1
kind: Job
metadata:
  name: kustomize-stats
spec:
  template:
    spec:
      restartPolicy: OnFailure
      containers:
      - name: kustomize-stats
        image: gcr.io/haiyanmeng-gke-dev/kustomize_stats:v1
        imagePullPolicy: Always
        command: ["/kustomize_stats"]
        args: ["--kinds=50", "--identifiers=50", "--kustomize-features=50"]
        env:
        - name: GITHUB_ACCESS_TOKEN
          valueFrom:
            secretKeyRef:
              name: github-access-token
              key: token
        - name: ELASTICSEARCH_URL
          valueFrom:
            configMapKeyRef:
              name: elasticsearch-config
              key: es-url

apiVersion: batch/v1
kind: Job
metadata:
  name: kustomize-stats
spec:
  template:
    spec:
      restartPolicy: OnFailure
      containers:
      - name: kustomize-stats
        image: gcr.io/haiyanmeng-gke-dev/kustomize_stats:v1
        imagePullPolicy: Always
        command: ["/kustomize_stats"]
        args: ["--index=kustomize", "--kinds=50", "--identifiers=50", "--kustomize-features=50"]
        env:
        - name: GITHUB_ACCESS_TOKEN
          valueFrom:
            secretKeyRef:
              name: github-access-token
              key: token
        - name: ELASTICSEARCH_URL
          valueFrom:
            configMapKeyRef:
              name: elasticsearch-config
              key: es-url

Add --index flag to kustomize_stats config file
Add --index flag to kustomize_stats config file
