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

introduce the component package #488

Merged
merged 5 commits into from
May 11, 2022
Merged

Conversation

clamoriniere
Copy link
Collaborator

@clamoriniere clamoriniere commented May 10, 2022

What does this PR do?

Introduce the component package with the NewDefaultClusterAgentPodTemplateSpec function
that aims to create a default cluster-agent PodTemplateSpec

Motivation

Refactor code for the feature factory

Additional Notes

Anything else we should know when reviewing?

Describe your test plan

it is code refactoring, unit-tests and test should be green.

@clamoriniere clamoriniere requested review from a team as code owners May 10, 2022 14:30
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request does not contain a valid label. Please add one of the following labels: bug, enhancement, refactoring, documentation, tooling

@clamoriniere clamoriniere force-pushed the clamoriniere/defaultComponents branch from 4add6f5 to 2bb46e9 Compare May 10, 2022 14:35
@clamoriniere clamoriniere changed the title introduce the component package introduce the component package May 10, 2022
VolumeMounts: volumeMounts,
Command: nil,
Args: nil,
SecurityContext: &corev1.SecurityContext{
Copy link
Contributor

Choose a reason for hiding this comment

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

should we make this configurable as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is the default PodTemplateSpec, so it is not configurable.

The Idea it to create later another function that will use DatadogAgent.Spec.Override to override the PodTemplate if needed. Or it will be configurable in a Feature

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry commented too quickly, after reviewing more i understand

Co-authored-by: Celene <celene@datadoghq.com>
@clamoriniere clamoriniere merged commit 7a62cc6 into main May 11, 2022
@clamoriniere clamoriniere deleted the clamoriniere/defaultComponents branch May 11, 2022 17:38
celenechang added a commit that referenced this pull request May 18, 2022
Co-authored-by: Celene <celene@datadoghq.com>
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.

None yet

2 participants