Skip to content

Commit 3a6a837

Browse files
Merge pull request #860 from rabi/deployed
Remove the deployed attribute from deployment
2 parents 85ff47f + 5a55c47 commit 3a6a837

5 files changed

Lines changed: 0 additions & 24 deletions

File tree

‎apis/bases/dataplane.openstack.org_openstackdataplanedeployments.yaml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ spec:
108108
additionalProperties:
109109
type: string
110110
type: object
111-
deployed:
112-
type: boolean
113111
deployedVersion:
114112
type: string
115113
nodeSetConditions:

‎apis/dataplane/v1beta1/openstackdataplanedeployment_types.go‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ type OpenStackDataPlaneDeploymentStatus struct {
8989

9090
// DeployedVersion
9191
DeployedVersion string `json:"deployedVersion,omitempty"`
92-
93-
// +operator-sdk:csv:customresourcedefinitions:type=status,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:booleanSwitch"}
94-
// Deployed
95-
Deployed bool `json:"deployed,omitempty" optional:"true"`
9692
}
9793

9894
//+kubebuilder:object:root=true
@@ -151,6 +147,4 @@ func (instance *OpenStackDataPlaneDeployment) InitConditions() {
151147

152148
}
153149
}
154-
155-
instance.Status.Deployed = false
156150
}

‎config/crd/bases/dataplane.openstack.org_openstackdataplanedeployments.yaml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ spec:
108108
additionalProperties:
109109
type: string
110110
type: object
111-
deployed:
112-
type: boolean
113111
deployedVersion:
114112
type: string
115113
nodeSetConditions:

‎controllers/dataplane/openstackdataplanedeployment_controller.go‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@ func (r *OpenStackDataPlaneDeploymentReconciler) Reconcile(ctx context.Context,
9898
Log,
9999
)
100100

101-
// If the deploy is already done, return immediately.
102-
if instance.Status.Deployed {
103-
Log.Info("Already deployed", "instance.Status.Deployed", instance.Status.Deployed)
104-
return ctrl.Result{}, nil
105-
}
106-
107101
// initialize status if Conditions is nil, but do not reset if it already
108102
// exists
109103
isNewInstance := instance.Status.Conditions == nil
@@ -293,8 +287,6 @@ func (r *OpenStackDataPlaneDeploymentReconciler) Reconcile(ctx context.Context,
293287
for _, nodeSet := range nodeSets.Items {
294288

295289
Log.Info(fmt.Sprintf("Deploying NodeSet: %s", nodeSet.Name))
296-
Log.Info("Set Status.Deployed to false", "instance", instance)
297-
instance.Status.Deployed = false
298290
Log.Info("Set DeploymentReadyCondition false")
299291
instance.Status.Conditions.MarkFalse(
300292
condition.DeploymentReadyCondition, condition.RequestedReason,
@@ -387,7 +379,6 @@ func (r *OpenStackDataPlaneDeploymentReconciler) Reconcile(ctx context.Context,
387379
Log.Info("Set DeploymentReadyCondition true")
388380
instance.Status.Conditions.MarkTrue(condition.DeploymentReadyCondition, condition.DeploymentReadyMessage)
389381
Log.Info("Set Status.Deployed to true", "instance", instance)
390-
instance.Status.Deployed = true
391382
if version != nil {
392383
instance.Status.DeployedVersion = version.Spec.TargetVersion
393384
}

‎docs/assemblies/dataplane_resources.adoc‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,6 @@ OpenStackDataPlaneDeploymentStatus defines the observed state of OpenStackDataPl
172172
| DeployedVersion
173173
| string
174174
| false
175-
176-
| deployed
177-
| Deployed
178-
| bool
179-
| false
180175
|===
181176
182177
<<custom-resources,Back to Custom Resources>>

0 commit comments

Comments
 (0)