Skip to content
This repository was archived by the owner on Jun 26, 2024. It is now read-only.

Conversation

pedjak
Copy link
Contributor

@pedjak pedjak commented Sep 29, 2021

Until now, the binding name was set through .metadata.name of ServiceBinding resource,
and that name was used in constructing binding mount point, i.e. <SERVICE_BINDING_ROOT>/<binding name>

Since .metadata.name value must be unique within all ServiceBinding resources in a given namespace,
the introduction of .spec.name allows us to overwrite .metadata.name and have more predictable
mount points inside containers.

This work aligns binding.operators.coreos.com/v1alpha1 API even further to the spec API:

https://github.com/servicebinding/spec#resource-type-schema-1

…eos.com/v1alpha1 API`

Until now, the binding name was set through `.metadata.name` of `ServiceBinding` resource,
and that name was used in constructing binding mount point, i.e. `<SERVICE_BINDING_ROOT>/<binding name>`

Since `.metadata.name` value must be unique within all `ServiceBinding` resources in a given namespace,
the introduction of `.spec.name` allows us to overwrite `.metadata.name` and have more predictable
mount points inside containers.

This work alligns `binding.operators.coreos.com/v1alpha1 API` even further to the spec API:

https://github.com/servicebinding/spec#resource-type-schema-1

Signed-off-by: Predrag Knezevic <[email protected]>
@pedjak pedjak requested review from pmacik and removed request for isutton and jasperchui September 29, 2021 08:54
@pedjak pedjak added this to the 0.11 milestone Sep 29, 2021
@codecov
Copy link

codecov bot commented Sep 29, 2021

Codecov Report

Merging #1037 (e60ecff) into master (d4799a6) will increase coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1037      +/-   ##
==========================================
+ Coverage   57.77%   57.88%   +0.11%     
==========================================
  Files          28       28              
  Lines        1570     1572       +2     
==========================================
+ Hits          907      910       +3     
+ Misses        545      544       -1     
  Partials      118      118              
Impacted Files Coverage Δ
apis/binding/v1alpha1/servicebinding_types.go 35.29% <ø> (ø)
pkg/reconcile/pipeline/context/impl.go 65.88% <100.00%> (+0.79%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4799a6...e60ecff. Read the comment docs.

@pmacik
Copy link
Contributor

pmacik commented Sep 29, 2021

/lgtm
/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 29, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pmacik

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 328600d into redhat-developer:master Sep 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants