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

expose logLevel for apiserver containers #3652

Merged
merged 3 commits into from
Dec 19, 2024
Merged

Conversation

ti-afra
Copy link
Contributor

@ti-afra ti-afra commented Dec 16, 2024

Description

For PR author

  • Tests for change.
  • If changing pkg/apis/, run make gen-files
  • If changing versions, run make gen-versions

For PR reviewers

A note for code reviewers - all pull requests must have the following:

  • Milestone set according to targeted release.
  • Appropriate labels:
    • kind/bug if this is a bugfix.
    • kind/enhancement if this is a a new feature.
    • enterprise if this PR applies to Calico Enterprise only.

@ti-afra ti-afra requested a review from a team as a code owner December 16, 2024 22:20
@marvin-tigera marvin-tigera added this to the v1.38.0 milestone Dec 16, 2024
@ti-afra ti-afra force-pushed the log-level branch 5 times, most recently from 33af101 to b387d07 Compare December 17, 2024 21:20
@@ -86,6 +86,11 @@ type APIServerDeploymentContainer struct {
// If used in conjunction with the deprecated ComponentResources, then this value takes precedence.
// +optional
Resources *v1.ResourceRequirements `json:"resources,omitempty"`

// +kubebuilder:validation:Enum=fatal;error;warn;info;debug;trace
Copy link
Member

Choose a reason for hiding this comment

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

These should be capitalized - e.g., Fatal, Error, etc.

This just matches k8s API conventions for enum types

gomega Expect was not able to compare correctly the dex policies
and would fail when running in "Run" mode but pass when running in
"Debug" mode.
It was also passing when we print the values before the Expect().To()
call.

To fix this, we convert the larger and nested struct to String
and compare the string values.
@rene-dekker rene-dekker merged commit 02b0263 into tigera:master Dec 19, 2024
5 checks passed
@ti-afra ti-afra deleted the log-level branch December 19, 2024 18:03
ti-afra added a commit to ti-afra/operator that referenced this pull request Dec 19, 2024
* expose logLevel in apiserver manifest for its containers

* fix unstable gomega match for large nested dex policies

gomega Expect was not able to compare correctly the dex policies
and would fail when running in "Run" mode but pass when running in
"Debug" mode.
It was also passing when we print the values before the Expect().To()
call.

To fix this, we convert the larger and nested struct to String
and compare the string values.

* update crd: securityeventwebhooks
rene-dekker pushed a commit that referenced this pull request Dec 20, 2024
* expose logLevel in apiserver manifest for its containers

* fix unstable gomega match for large nested dex policies

gomega Expect was not able to compare correctly the dex policies
and would fail when running in "Run" mode but pass when running in
"Debug" mode.
It was also passing when we print the values before the Expect().To()
call.

To fix this, we convert the larger and nested struct to String
and compare the string values.

* update crd: securityeventwebhooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants