Skip to content

expose logLevel for apiserver containers#3652

Merged
rene-dekker merged 3 commits intotigera:masterfrom
ti-afra:log-level
Dec 19, 2024
Merged

expose logLevel for apiserver containers#3652
rene-dekker merged 3 commits intotigera:masterfrom
ti-afra:log-level

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
// +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
@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