Skip to content

Commit

Permalink
Remove endpoint url and keystone service id from status
Browse files Browse the repository at this point in the history
These items presented in CR status are not really used. Endpoints can
be discovered using Keystone and we have no use case to require service
id.
  • Loading branch information
kajinamit authored and xek committed Jul 28, 2023
1 parent c3be85c commit 893a591
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 49 deletions.
8 changes: 0 additions & 8 deletions api/v1beta1/barbican_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ type BarbicanStatus struct {
// Conditions
Conditions condition.Conditions `json:"conditions,omitempty" optional:"true"`

// API endpoints
// TODO(dmendiza): This thing is hideous. Why do we need it?
APIEndpoints map[string]map[string]string `json:"apiEndpoints,omitempty"`

// ServiceIDs
// TODO(dmendiza): This thing is hideous. Why do we need it?
ServiceIDs map[string]string `json:"serviceIDs,omitempty"`

// ReadyCount of Barbican API instances
BarbicanAPIReadyCount int32 `json:"barbicanAPIReadyCount,omitempty"`

Expand Down
24 changes: 0 additions & 24 deletions api/v1beta1/zz_generated.deepcopy.go

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

14 changes: 0 additions & 14 deletions config/crd/bases/barbican.openstack.org_barbicans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,6 @@ spec:
status:
description: BarbicanStatus defines the observed state of Barbican
properties:
apiEndpoints:
additionalProperties:
additionalProperties:
type: string
type: object
description: 'API endpoints TODO(dmendiza): This thing is hideous. Why
do we need it?'
type: object
barbicanAPIReadyCount:
description: ReadyCount of Barbican API instances
format: int32
Expand Down Expand Up @@ -349,12 +341,6 @@ spec:
type: string
description: Map of hashes to track e.g. job status
type: object
serviceIDs:
additionalProperties:
type: string
description: 'ServiceIDs TODO(dmendiza): This thing is hideous. Why
do we need it?'
type: object
transportURLSecret:
description: TransportURLSecret - Secret containing RabbitMQ transportURL
type: string
Expand Down
3 changes: 0 additions & 3 deletions controllers/barbican_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ func (r *BarbicanReconciler) Reconcile(ctx context.Context, req ctrl.Request) (r
if instance.Status.Hash == nil {
instance.Status.Hash = map[string]string{}
}
if instance.Status.APIEndpoints == nil {
instance.Status.APIEndpoints = map[string]map[string]string{}
}

// Handle service delete
if !instance.DeletionTimestamp.IsZero() {
Expand Down

0 comments on commit 893a591

Please sign in to comment.