Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the addresss of the BuildService #7367

Closed
wants to merge 8 commits into from
Closed

Conversation

TsuyoshiUshio
Copy link
Contributor

@TsuyoshiUshio TsuyoshiUshio commented May 12, 2021

Update the Kubernetes Environment Build Service URL.
Keep the current behavior by default.
Also fix the wrong '/operations/settriggers' It should be '/api/operations/settriggers'

CC: @pragnagopa

Fix

Resolves #7360
https://github.com/microsoft/k4apps/issues/556

Pull request checklist

  • My changes do not require documentation changes
  • My changes should not be added to the release notes for the next release
  • My changes do not need to be backported to a previous version

url = $"http://{ManagedKubernetesBuildServiceName}.{ManagedKubernetesBuildServiceNamespace}.svc.cluster.local:{ManagedKubernetesBuildServicePort}/operations/settriggers";
var buildServiceHostname =
_environment.GetEnvironmentVariable(EnvironmentSettingNames.BuildServiceHostname);

Copy link
Member

@pragnagopa pragnagopa May 12, 2021

Choose a reason for hiding this comment

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

Move this to environment extensions and add tests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.
Could you have a look? @pragnagopa

@TsuyoshiUshio TsuyoshiUshio requested a review from ahmelsayed May 12, 2021 22:00
@pragnagopa
Copy link
Member

Please link the issue in the host repo

@@ -149,6 +149,18 @@ public void IsPersistentStorageAvailable_IsLinuxWithStorage_ReturnsTrue()
Assert.True(environment.IsPersistentFileSystemAvailable());
}

[Fact]
public void IsBuildServiceHostname_Returns_ConfiguredValue()
{
Copy link
Member

Choose a reason for hiding this comment

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

nit: use [Theory] - use inline data

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Looks good? or modify it more?

pragnagopa
pragnagopa previously approved these changes May 12, 2021
ahmelsayed
ahmelsayed previously approved these changes May 12, 2021
@pragnagopa
Copy link
Member

@TsuyoshiUshio -please take a look at the failed unit tests. Ok to Ignore JIT trace test

@pragnagopa
Copy link
Member

@fabiocav - Windows JitTrace file test is failing. Ok to skip this test for Linux hotfix? As part of next release we can enable this test and regenerate JITTrace ?

@TsuyoshiUshio
Copy link
Contributor Author

The second PR doesn't cause Jit test fails. Close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SyncTrigger fails to call on Kubernetes Environment
3 participants