Skip to content

Commit

Permalink
Merge pull request openstack-k8s-operators#239 from dprince/drop_NewO…
Browse files Browse the repository at this point in the history
…penStackAnsibleEE

Drop NewOpenStackAnsibleEE
  • Loading branch information
openshift-merge-robot authored Sep 30, 2023
2 parents 96a16f0 + 4d1d591 commit 223adab
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions api/v1alpha1/openstack_ansibleee_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,21 +171,6 @@ func init() {
SchemeBuilder.Register(&OpenStackAnsibleEE{}, &OpenStackAnsibleEEList{})
}

// NewOpenStackAnsibleEE returns a OpenStackAnsibleEESpec where the fields are defaulted according
// to the CRD definition
func NewOpenStackAnsibleEE(name string) OpenStackAnsibleEESpec {
backoff := int32(6)
return OpenStackAnsibleEESpec{
Name: name,
Image: util.GetEnvVar("RELATED_IMAGE_ANSIBLEEE_IMAGE_URL_DEFAULT", OpenStackAnsibleEEContainerImage),
EnvConfigMapName: "openstack-aee-default-env",
PreserveJobs: true,
RestartPolicy: "Never",
UID: 1001,
BackoffLimit: &backoff,
}
}

// IsReady - returns true if the OpenStackAnsibleEE is ready
func (instance OpenStackAnsibleEE) IsReady() bool {
return instance.Status.Conditions.IsTrue(AnsibleExecutionJobReadyCondition)
Expand Down

0 comments on commit 223adab

Please sign in to comment.