Skip to content

Commit 7338252

Browse files
committed
fix: don't require contexts for registering a deployment
1 parent 732cf61 commit 7338252

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/controller/githubenvironment_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3535
"k8s.io/apimachinery/pkg/runtime"
3636
"k8s.io/apimachinery/pkg/types"
37+
k8sptr "k8s.io/utils/ptr"
3738
ctrl "sigs.k8s.io/controller-runtime"
3839
"sigs.k8s.io/controller-runtime/pkg/client"
3940
"sigs.k8s.io/controller-runtime/pkg/handler"
@@ -830,6 +831,7 @@ func (r *GitHubEnvironmentReconciler) syncDeploymentHistory(ctx context.Context,
830831
ProductionEnvironment: github.Bool(environment.Spec.Environment == "production"),
831832
AutoMerge: github.Bool(false),
832833
Payload: payloadJSON,
834+
RequiredContexts: k8sptr.To([]string{}),
833835
}
834836
created, _, err := gh.Repositories.CreateDeployment(ctx, owner, repo, req)
835837
if err != nil {

0 commit comments

Comments
 (0)