Skip to content

Commit

Permalink
Merge pull request #257 from kajinamit/api-endpoints-followup
Browse files Browse the repository at this point in the history
Remove status.APIEndpoint
  • Loading branch information
openshift-merge-robot authored Jun 15, 2023
2 parents e0616af + 7f1d0f5 commit 7d7aa98
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 24 deletions.
5 changes: 0 additions & 5 deletions api/bases/keystone.openstack.org_keystoneapis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,6 @@ spec:
status:
description: KeystoneAPIStatus defines the observed state of KeystoneAPI
properties:
apiEndpoint:
additionalProperties:
type: string
description: API endpoint (deprecated)
type: object
apiEndpoints:
additionalProperties:
type: string
Expand Down
3 changes: 0 additions & 3 deletions api/v1beta1/keystoneapi_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ type KeystoneAPIStatus struct {
// API endpoint
APIEndpoints map[string]string `json:"apiEndpoints,omitempty"`

// API endpoint (deprecated)
APIEndpoint map[string]string `json:"apiEndpoint,omitempty"`

// Conditions
Conditions condition.Conditions `json:"conditions,omitempty" optional:"true"`

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

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

5 changes: 0 additions & 5 deletions config/crd/bases/keystone.openstack.org_keystoneapis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,6 @@ spec:
status:
description: KeystoneAPIStatus defines the observed state of KeystoneAPI
properties:
apiEndpoint:
additionalProperties:
type: string
description: API endpoint (deprecated)
type: object
apiEndpoints:
additionalProperties:
type: string
Expand Down
4 changes: 0 additions & 4 deletions controllers/keystoneapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,6 @@ func (r *KeystoneAPIReconciler) Reconcile(ctx context.Context, req ctrl.Request)
if instance.Status.Hash == nil {
instance.Status.Hash = map[string]string{}
}
if instance.Status.APIEndpoint == nil {
instance.Status.APIEndpoint = map[string]string{}
}
if instance.Status.APIEndpoints == nil {
instance.Status.APIEndpoints = map[string]string{}
}
Expand Down Expand Up @@ -432,7 +429,6 @@ func (r *KeystoneAPIReconciler) reconcileInit(
//
// TODO: need to support https default here
instance.Status.APIEndpoints = apiEndpoints
instance.Status.APIEndpoint = apiEndpoints

// expose service - end

Expand Down

0 comments on commit 7d7aa98

Please sign in to comment.