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

Conversation

@nshankar13
Copy link
Contributor

Signed-off-by: nshankar13 [email protected]

Description: Add default meshconfig, and update the meshconfig with default for the noInstall option in e2e tests.

Affected area:

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

Please answer the following questions with yes/no.

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

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

@nshankar13 nshankar13 requested a review from a team as a code owner June 10, 2021 02:58
@codecov-commenter
Copy link

codecov-commenter commented Jun 10, 2021

Codecov Report

Merging #3565 (f5df16c) into main (9684c97) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3565      +/-   ##
==========================================
+ Coverage   66.12%   66.13%   +0.01%     
==========================================
  Files         174      174              
  Lines        8309     8309              
==========================================
+ Hits         5494     5495       +1     
+ Misses       2784     2783       -1     
  Partials       31       31              
Flag Coverage Δ
unittests 66.13% <ø> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
pkg/endpoint/providers/kube/client.go 79.00% <0.00%> (+1.00%) ⬆️

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 9684c97...f5df16c. Read the comment docs.

@nshankar13 nshankar13 linked an issue Jun 10, 2021 that may be closed by this pull request
@nshankar13 nshankar13 changed the title fix(e2e: Add default meshconfig) fix(e2e): Add default meshconfig Jun 10, 2021
}
}

func (c *meshConfigs) GetDefaultConfig(resourceVersion string) (defaultConfig *v1alpha1.MeshConfig) {
Copy link
Contributor

@snehachhabria snehachhabria Jun 10, 2021

Choose a reason for hiding this comment

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

Let's please create this in the common.go of the e2e, since it will be used only for the e2e tests and has hard coded values

Copy link
Member

Choose a reason for hiding this comment

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

+1

This should not be updating the API.

Copy link
Contributor Author

@nshankar13 nshankar13 Jun 10, 2021

Choose a reason for hiding this comment

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

@shashankram @snehachhabria instead of creating a new meshconfig object, I will just override the fields I need to in the existing meshconfig. Otherwise, I am seeing that the envoy / init images that initially point to another registry (ex MCR) are being overridden and pointing to the osm dockerhub images instead every time the default is applied. Also, we don't necessarily want to hardcode values like Traffic.EnablePermissiveTrafficPolicyMode in the tests,

@nshankar13 nshankar13 force-pushed the default_meshconfig_e2e branch from b659fb4 to 6c5e7e0 Compare June 10, 2021 18:32
@nshankar13 nshankar13 force-pushed the default_meshconfig_e2e branch from 6c5e7e0 to f5df16c Compare June 10, 2021 18:41
@nshankar13 nshankar13 force-pushed the default_meshconfig_e2e branch from f5df16c to e13f4c7 Compare June 10, 2021 18:52
@nshankar13 nshankar13 merged commit 1668a28 into openservicemesh:main Jun 10, 2021
@nshankar13
Copy link
Contributor Author

@mergify backport release-v0.9

@mergify
Copy link
Contributor

mergify bot commented Jun 10, 2021

Command backport release-v0.9: success

Backports have been created

Hey, I reacted but my real name is @Mergifyio

nshankar13 added a commit that referenced this pull request Jun 10, 2021
…/pr-3565

fix(e2e): Add default meshconfig (backport #3565)
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.

e2e tests on NoInstall doesn't reset meshConfig to default state

5 participants