Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

apis: add MeshRootCertificate API types #4677

Merged
merged 3 commits into from
Apr 22, 2022

Conversation

jaellio
Copy link
Contributor

@jaellio jaellio commented Apr 20, 2022

Description:

Adds the Go types for the MeshRootCertificate API

Part of #4502

Affected area:

Functional Area
New Functionality [x]
CI System [ ]
CLI Tool [ ]
Certificate Management [ ]
Control Plane [ ]
Demo [ ]
Documentation [ ]
Egress [ ]
Ingress [ ]
Install [ ]
Networking [ ]
Observability [ ]
Performance [ ]
SMI Policy [ ]
Security [ ]
Sidecar Injection [ ]
Tests [ ]
Upgrade [ ]
Other [ ]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project? no

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change? no

  3. Has documentation corresponding to this change been updated in the osm-docs repo (if applicable)?

Adds the Go types for the MeshRootCertificate API

Part of openservicemesh#4502

Signed-off-by: jaellio <[email protected]>
@jaellio jaellio marked this pull request as ready for review April 21, 2022 22:46
Copy link
Member

@shashankram shashankram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The v1alpha1 version of the config API is being updated here, which is no longer used.

type MeshRootCertificateSpec struct {
// Provider specifies the mesh certificate provider
// +optional
Provider *ProviderSpec `json:"provider,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason the only field in the spec is optional? Does an empty spec mean something?

Signed-off-by: jaellio <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Apr 22, 2022

Codecov Report

Merging #4677 (5b43418) into main (82492c0) will decrease coverage by 0.29%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #4677      +/-   ##
==========================================
- Coverage   69.76%   69.47%   -0.30%     
==========================================
  Files         217      217              
  Lines       15020    15325     +305     
==========================================
+ Hits        10479    10647     +168     
- Misses       4491     4628     +137     
  Partials       50       50              
Flag Coverage Δ
unittests 69.47% <ø> (-0.30%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/envoy/bootstrap/config.go 72.16% <0.00%> (-20.69%) ⬇️
pkg/injector/envoy_config.go 71.72% <0.00%> (-9.36%) ⬇️
pkg/validator/validators.go 80.51% <0.00%> (-6.28%) ⬇️
pkg/ticker/ticker.go 83.33% <0.00%> (-3.85%) ⬇️
pkg/cli/verifier/envoy_config.go 64.42% <0.00%> (-2.04%) ⬇️
pkg/policy/client.go 87.41% <0.00%> (-1.02%) ⬇️
cmd/osm-bootstrap/osm-bootstrap.go 44.67% <0.00%> (-0.93%) ⬇️
cmd/osm-controller/gateway.go 80.30% <0.00%> (-0.86%) ⬇️
cmd/osm-controller/osm-controller.go 14.97% <0.00%> (-0.34%) ⬇️
pkg/policy/conflicts.go 100.00% <0.00%> (ø)
... and 6 more

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 82492c0...5b43418. Read the comment docs.

Signed-off-by: jaellio <[email protected]>
@nojnhuh nojnhuh merged commit 455887d into openservicemesh:main Apr 22, 2022
keithmattix pushed a commit to keithmattix/osm that referenced this pull request May 3, 2022
* apis: add MeshRootCertificate API types

Adds the Go types for the MeshRootCertificate API

Part of openservicemesh#4502

Signed-off-by: jaellio <[email protected]>

* Use v1alpha2

Signed-off-by: jaellio <[email protected]>

* Update ProviderSpec

Signed-off-by: jaellio <[email protected]>
@jaellio jaellio linked an issue Jul 7, 2022 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define MeshRootCertificate API
5 participants