Skip to content

Commit

Permalink
make generate manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin committed Apr 5, 2024
1 parent c4eb216 commit d6e81d3
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
20 changes: 20 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5689,6 +5689,17 @@ spec:
- increaseQuantity
- usedSpacePercentage
type: object
stuckPodMitigation:
description: Take action when a pod is stuck.
properties:
threshold:
description: If a pod is stuck in a non-running state for
this duration, the pod is deleted.
format: int32
type: integer
required:
- threshold
type: object
type: object
service:
description: Configure Operator created services. A singe rpc service
Expand Down
7 changes: 7 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,16 @@ rules:
resources:
- pods
verbs:
- delete
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/log
verbs:
- get
- apiGroups:
- ""
resources:
Expand Down
4 changes: 2 additions & 2 deletions controllers/selfhealing_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func NewSelfHealing(
}
}

// +kubebuilder:rbac:groups="",resources=pods,verbs=get;list;watch;delete
// +kubebuilder:rbac:groups="",resources=pods/log,verbs=get
//+kubebuilder:rbac:groups="",resources=pods,verbs=get;list;watch;delete
//+kubebuilder:rbac:groups="",resources=pods/log,verbs=get

// Reconcile reconciles only the self-healing spec in CosmosFullNode. If changes needed, this controller
// updates a CosmosFullNode status subresource thus triggering another reconcile loop. The CosmosFullNode
Expand Down

0 comments on commit d6e81d3

Please sign in to comment.