Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

pkg/components: add Headlamp component #981

Merged
merged 9 commits into from
Oct 13, 2020
Merged

pkg/components: add Headlamp component #981

merged 9 commits into from
Oct 13, 2020

Conversation

iaguis
Copy link
Contributor

@iaguis iaguis commented Sep 17, 2020

Fixes #988

Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

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

Hmm, I think we should also include headlamp in CI configuration and have some basic e2e tests for it.

assets/charts/components/headlamp/Chart.yaml Show resolved Hide resolved
assets/charts/components/headlamp/templates/NOTES.txt Outdated Show resolved Hide resolved
assets/charts/components/headlamp/values.yaml Outdated Show resolved Hide resolved
assets/charts/components/headlamp/values.yaml Outdated Show resolved Hide resolved
pkg/components/headlamp/component.go Outdated Show resolved Hide resolved
pkg/components/headlamp/component.go Outdated Show resolved Hide resolved
Copy link
Contributor Author

@iaguis iaguis left a comment

Choose a reason for hiding this comment

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

Hmm, I think we should also include headlamp in CI configuration and have some basic e2e tests for it.

Will add basic tests.

@surajssd
Copy link
Member

@iaguis can you address the reviews. Or do you mind someone taking it over?

@iaguis iaguis force-pushed the iaguis/headlamp branch 3 times, most recently from 6aa6c7d to 8c693f2 Compare September 29, 2020 09:53
@invidian
Copy link
Member

@iaguis make sure to pull the reviewers again when you are done addressing review comments. Resolving existing conversations when they are addressed is also helpful while doing another rounds of reviews :)

@iaguis
Copy link
Contributor Author

iaguis commented Sep 30, 2020

@iaguis make sure to pull the reviewers again when you are done addressing review comments. Resolving existing conversations when they are addressed is also helpful while doing another rounds of reviews :)

Yes, I was waiting for CI to pass and I didn't realize it was passing already :D

Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

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

Looks mostly good, though I'd change commits a bit, as right now it is difficult to review the PR commit by commit.

ci/aks/aks-cluster.lokocfg.envsubst Outdated Show resolved Hide resolved
pkg/components/headlamp/component.go Show resolved Hide resolved
pkg/components/headlamp/component.go Outdated Show resolved Hide resolved
pkg/components/headlamp/component.go Outdated Show resolved Hide resolved
docs/configuration-reference/components/headlamp.md Outdated Show resolved Hide resolved
pkg/components/headlamp/component.go Show resolved Hide resolved
@iaguis iaguis force-pushed the iaguis/headlamp branch 7 times, most recently from f59eaf7 to e40715d Compare October 6, 2020 13:37
@iaguis iaguis requested review from knrt10 and invidian October 6, 2020 13:38
Copy link
Member

@knrt10 knrt10 left a comment

Choose a reason for hiding this comment

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

NIT picks. We are using unmarshaling in our test cases elsewhere.

pkg/components/headlamp/component_test.go Show resolved Hide resolved
pkg/components/headlamp/component_test.go Show resolved Hide resolved
Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

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

Awesome update @iaguis, I think there is still few bits which could be improved, but it looks very nice already!

docs/configuration-reference/components/headlamp.md Outdated Show resolved Hide resolved
docs/configuration-reference/components/headlamp.md Outdated Show resolved Hide resolved
docs/configuration-reference/components/headlamp.md Outdated Show resolved Hide resolved
docs/configuration-reference/components/headlamp.md Outdated Show resolved Hide resolved
pkg/components/headlamp/component_test.go Show resolved Hide resolved
test/ingress/ingress.go Outdated Show resolved Hide resolved
test/ingress/ingress.go Outdated Show resolved Hide resolved
@iaguis iaguis force-pushed the iaguis/headlamp branch 3 times, most recently from 7d3f101 to 2d9074e Compare October 12, 2020 12:52
go.mod Show resolved Hide resolved
docs/configuration-reference/components/headlamp.md Outdated Show resolved Hide resolved
docs/configuration-reference/components/headlamp.md Outdated Show resolved Hide resolved
docs/configuration-reference/components/headlamp.md Outdated Show resolved Hide resolved
pkg/components/headlamp/template.go Outdated Show resolved Hide resolved
pkg/components/headlamp/template.go Outdated Show resolved Hide resolved
test/components/headlamp/headlamp_test.go Show resolved Hide resolved
test/ingress/aws/aws_test.go Show resolved Hide resolved
ci/aks/aks-cluster.lokocfg.envsubst Outdated Show resolved Hide resolved
ci/aws/aws-cluster.lokocfg.envsubst Outdated Show resolved Hide resolved
@iaguis
Copy link
Contributor Author

iaguis commented Oct 13, 2020

Addressed review. I've moved it to the lokomotive-system namespace and dropped all capabilities too. PTAL.

@iaguis iaguis requested a review from invidian October 13, 2020 14:21
Copy link
Member

@knrt10 knrt10 left a comment

Choose a reason for hiding this comment

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

Small test changes

invidian
invidian previously approved these changes Oct 13, 2020
Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

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

Just one tiny nit, but I'm fine with it.

Nice work @iaguis, LGTM 👍 ✔️ 🎉

pkg/components/headlamp/component_test.go Outdated Show resolved Hide resolved
It checks that the deployment is created and converges.
We weren't taking into account the test structure component name and
were using the hardcoded "httpbin" string. This means we were only
testing the httpbin component.

This uses the component name from the test structure. Also, this changes
the hardcoded "get" subpath to a parameter so we can access the right
Prometheus Operator URL.
This refactors the HTTP access code so it can be reused later for the
Headlamp ingress test.
Copy link
Member

@knrt10 knrt10 left a comment

Choose a reason for hiding this comment

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

Nice work. Looks great 🔥

@iaguis iaguis merged commit ac50c36 into master Oct 13, 2020
@iaguis iaguis deleted the iaguis/headlamp branch October 13, 2020 18:09
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.

Add Web UI component (Headlamp)
4 participants