Skip to content

Commit 484e31e

Browse files
committed
Handle TokenSecretKeyRef
1 parent 9e5e9ec commit 484e31e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/controllers/runner_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (r *RunnerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
7575
return ctrl.Result{}, err
7676
}
7777

78-
if r.GitHubAppClientId != "" && r.GitHubAppInstallationId != "" && r.GitHubAppPrivateKey != "" {
78+
if runner.Spec.TokenSecretKeyRef == nil && r.GitHubAppClientId != "" && r.GitHubAppInstallationId != "" && r.GitHubAppPrivateKey != "" {
7979
var tokenSecret v1.Secret
8080
if err := r.Client.Get(
8181
ctx,

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func main() {
6363
flag.StringVar(&githubAppInstallationId, "github-app-installation-id", "", "GitHub App Installation ID")
6464
flag.StringVar(&githubAppPrivateKey, "github-app-private-key", "", "GitHub App Private Key")
6565
flag.StringVar(&kanikoImage, "kaniko-image", "gcr.io/kaniko-project/executor:v1.23.0", "Docker Image of kaniko used by builder container")
66-
flag.StringVar(&binaryVersion, "binary-version", "0.4.3", "Version of own runner binary")
66+
flag.StringVar(&binaryVersion, "binary-version", "0.4.4", "Version of own runner binary")
6767
flag.StringVar(&runnerVersion, "runner-version", "2.321.0", "Version of GitHub Actions runner")
6868
flag.BoolVar(&disableupdate, "disableupdate", false, "Disable self-hosted runner automatic update to the latest released version")
6969
opts := zap.Options{}

0 commit comments

Comments
 (0)