Skip to content

Commit

Permalink
fix charts and rbac to pass e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ryotaro Banno <[email protected]>
  • Loading branch information
ushitora-anqou committed Oct 30, 2024
1 parent 15474e7 commit f6689e2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/mantle-cluster-wide/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ rules:
- batch
resources:
- cronjobs
- jobs
verbs:
- create
- delete
Expand Down
2 changes: 2 additions & 0 deletions charts/mantle/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IMAGE
value: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
ports:
{{- toYaml .Values.controller.ports | nindent 12 }}
- command:
Expand Down
9 changes: 9 additions & 0 deletions charts/mantle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ affinity: {}
controller:
role: standalone
ports: []
#mantleServiceEndpoint:
#overwriteMBCSchedule:
#maxExportJobs:
#exportDataStorageClass:
#envSecret:
#objectStorageBucketName:
#objectStorageEndpoint:
#caCertConfigMap:
#caCertKey:

secondaryService:
# type:
Expand Down
1 change: 1 addition & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ rules:
- batch
resources:
- cronjobs
- jobs
verbs:
- create
- delete
Expand Down
1 change: 1 addition & 0 deletions internal/controller/mantlebackup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ func (r *MantleBackupReconciler) expire(ctx context.Context, backup *mantlev1.Ma
//+kubebuilder:rbac:groups="",resources=persistentvolumeclaims,verbs=get;list;watch
//+kubebuilder:rbac:groups="",resources=persistentvolumes,verbs=get;list;watch
//+kubebuilder:rbac:groups=storage.k8s.io,resources=storageclasses,verbs=get;list;watch
//+kubebuilder:rbac:groups="batch",resources=jobs,verbs=get;list;watch;create;update;patch;delete

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down

0 comments on commit f6689e2

Please sign in to comment.