Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add finalizer #45

Merged
merged 15 commits into from
Nov 15, 2023
6 changes: 5 additions & 1 deletion api/v1beta1/compassmanagermapping_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import (
type CompassManagerMappingSpec struct{}

// CompassManagerMappingStatus defines the observed state of CompassManagerMapping
type CompassManagerMappingStatus struct{}
type CompassManagerMappingStatus struct {
Registered bool `json:"registered"`
Configured bool `json:"configured"`
State string `json:"state,omitempty"`
}

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ spec:
status:
description: CompassManagerMappingStatus defines the observed state of
CompassManagerMapping
properties:
configured:
type: boolean
registered:
type: boolean
state:
type: string
required:
- configured
- registered
type: object
type: object
served: true
Expand Down
10 changes: 6 additions & 4 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,16 @@ rules:
- apiGroups:
- operator.kyma-project.io
resources:
- kymas
- compassmanagermappings/status
verbs:
- get
- list
- watch
- patch
- update
- apiGroups:
- operator.kyma-project.io
resources:
- kymas/status
- kymas
verbs:
- get
- list
- watch
Loading