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

Added PodSpec for DNS config,policy and Hostnetwork for rsyslog/redis/ee/task/init and web containers. #1471

Open
wants to merge 12 commits into
base: devel
Choose a base branch
from

Conversation

rakesh561
Copy link
Contributor

@rakesh561 rakesh561 commented Jun 29, 2023

SUMMARY

Added PodSpec for DNS config,policy and Hostnetwork for rsyslog/redis/ee/task/init and web containers.

ISSUE TYPE
  • New or Enhanced Feature
ADDITIONAL INFORMATION

This will address the following #479 issue

type: string
type: array
type: object
rsyslog_dns_Policy:
Copy link
Member

Choose a reason for hiding this comment

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

Policy should be lowercase for consistency with the rest here.

@rooftopcellist
Copy link
Member

Is there a particular use case for doing this for Rsyslog?

Are you planning to add these fields as configurable for the task/web deployments?

@rakesh561
Copy link
Contributor Author

I'm planning to apply for task/web and redis.I will update the PR by end of today

@rakesh561 rakesh561 changed the title Added PodSpec for DNS config,policy and Hostnetwork Added PodSpec for DNS config,policy and Hostnetwork for rsyslog/redis/ee/task/init and web containers. Jul 5, 2023
@rakesh561
Copy link
Contributor Author

@rooftopcellist Updated the PR for all the containers

type: string
task_host_network:
type: boolean
init_dns_config:
Copy link
Member

Choose a reason for hiding this comment

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

@rakesh561 Is there a use case for having this for the init container? I don't think we should add it if there isn't a scenario that it would be used.

@rakesh561
Copy link
Contributor Author

@rooftopcellist removed the init container from the config

@fosterseth
Copy link
Member

@rakesh561 do you have a podspec(s) that we can use as an example when testing this out locally?

also can you please take a look at the above CI failures?

@rooftopcellist
Copy link
Member

@rakesh561 It looks like CI is failing, before merge a couple things need to happen:

  • the branch needs to be rebased
  • CI needs to be passing
  • It would be helpful to have samples added to config/samples or just an example in a comment here for testing the changes out.

@rooftopcellist
Copy link
Member

@rakesh561 The CI is failing when applying the task deployment because of an extra closing brace somewhere:

task path: /opt/ansible/roles/installer/tasks/resources_configuration.yml:248\\nfatal: [localhost]: FAILED! => {\\\"msg\\\": \\\"An unhandled exception occurred while running the lookup plugin 'template'. Error was a <class 'ansible.errors.AnsibleError'>, original message: template error while templating string: unexpected '}'

{% if ee_dns_policy %}
dnsPolicy: {{ ee_dns_policy }}
{% endif %}
{% if ee_dns_policy == 'None' and ee_dns_config is defined }}
Copy link
Member

Choose a reason for hiding this comment

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

@rakesh561 it looks like there is an extra closing brace here at the end of line 350.

{% if rsyslog_dns_policy %}
dnsPolicy: {{ rsyslog_dns_policy }}
{% endif %}
{% if rsyslog_dns_policy == 'None' and rsyslog_dns_config is defined }}
Copy link
Member

Choose a reason for hiding this comment

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

Similarly, there is an extra closing brace at the end of this line too which causes syntax errors when applied.

{% if redis_dns_policy %}
dnsPolicy: {{ redis_dns_policy }}
{% endif %}
{% if redis_dns_policy == 'None' and redis_dns_config is defined }}
Copy link
Member

Choose a reason for hiding this comment

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

Similarly, there is an extra closing brace at the end of this line too which causes syntax errors when applied.

{% if rsyslog_dns_policy %}
dnsPolicy: {{ rsyslog_dns_policy }}
{% endif %}
{% if rsyslog_dns_policy == 'None' and rsyslog_dns_config is defined }}
Copy link
Member

Choose a reason for hiding this comment

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

Similarly, there is an extra closing brace at the end of this line too which causes syntax errors when applied.

{% if web_dns_policy %}
dnsPolicy: {{ web_dns_policy }}
{% endif %}
{% if web_dns_policy == 'None' and web_dns_config is defined }}
Copy link
Member

Choose a reason for hiding this comment

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

Similarly, there is an extra closing brace at the end of this line too which causes syntax errors when applied.

@rakesh561
Copy link
Contributor Author

@rooftopcellist thanks for finding them i have remove those extra braces

@rakesh561
Copy link
Contributor Author

@rooftopcellist let me know wat you think also in between i was off couldn't get back to contribution.

@TheRealHaoLiu
Copy link
Member

Hi @rakesh561 I think the generic override pattern suggested in #479 is a better way to address your need and a lot more different needs for other people

@TheRealHaoLiu
Copy link
Member

#1695

@rakesh561 try this out it should allow you to override the bits you want

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

4 participants