Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/controller' into controller
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Dec 19, 2023
2 parents 1f4efec + 0fba38f commit 76466cd
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions controller/config/default/manager_auth_proxy_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ spec:
- "--health-probe-bind-address=:8081"
- "--metrics-bind-address=127.0.0.1:8080"
- "--leader-elect"
- --console-url=$CONSOLE_URL
- --console-token=$CONSOLE_TOKEN
- --console-url=$(CONSOLE_URL)
- --console-token=$(CONSOLE_TOKEN)
4 changes: 2 additions & 2 deletions controller/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ spec:
- /manager
args:
- --leader-elect
- --console-url="$(CONSOLE_URL)"
- --console-token=$CONSOLE_TOKEN
- --console-url=$(CONSOLE_URL)
- --console-token=$(CONSOLE_TOKEN)
image: deployment-controller:latest
imagePullPolicy: Never
name: manager
Expand Down
4 changes: 2 additions & 2 deletions controller/config/manager/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ kind: Secret
metadata:
name: secrets
stringData:
consoleUrl: "$PLURAL_CONSOLE_URL" # replaced with envsubst
consoleToken: "$PLURAL_CONSOLE_TOKEN" # replaced with envsubst
consoleUrl: $PLURAL_CONSOLE_URL/gql # replaced with envsubst
consoleToken: $PLURAL_CONSOLE_TOKEN # replaced with envsubst
2 changes: 2 additions & 0 deletions controller/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ rules:
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch
- apiGroups:
- deployments.plural.sh
resources:
Expand Down
2 changes: 1 addition & 1 deletion controller/internal/controller/gitrepository_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type GitRepositoryReconciler struct {
// +kubebuilder:rbac:groups=deployments.plural.sh,resources=gitrepositories,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=deployments.plural.sh,resources=gitrepositories/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=deployments.plural.sh,resources=gitrepositories/finalizers,verbs=update
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch

func (r *GitRepositoryReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error) {
logger := log.FromContext(ctx)
Expand Down
2 changes: 1 addition & 1 deletion controller/internal/controller/provider_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const (
// +kubebuilder:rbac:groups=deployments.plural.sh,resources=providers,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=deployments.plural.sh,resources=providers/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=deployments.plural.sh,resources=providers/finalizers,verbs=update
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the v1alpha1.Provider closer to the desired state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ type ServiceReconciler struct {
// +kubebuilder:rbac:groups=deployments.plural.sh,resources=servicedeployments,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=deployments.plural.sh,resources=servicedeployments/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=deployments.plural.sh,resources=servicedeployments/finalizers,verbs=update
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list
// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch
// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch

func (r *ServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error) {
logger := log.FromContext(ctx)
Expand Down

0 comments on commit 76466cd

Please sign in to comment.