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

Make k8s images configurable #341

Merged
merged 3 commits into from
Jul 13, 2018
Merged

Make k8s images configurable #341

merged 3 commits into from
Jul 13, 2018

Conversation

katyafervent
Copy link
Contributor

No description provided.

self.meta["master_count"] = self.cluster.metadata["master_count"]
mc = self.cluster.metadata["master_count"]
if mc % 2 == 0:
raise ValueError("Master node count must be an odd number at least 3 or greater")
Copy link
Contributor

Choose a reason for hiding this comment

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

afaik its redundant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

redundant with what?

@naumvd95
Copy link
Contributor

do we need to forward it in compose-configs?

@katyafervent
Copy link
Contributor Author

this config is used in compose-demo file. I suggest to keep all Mirantis-related params in a one config

@katyafervent katyafervent force-pushed the make-k8s-images-confogurable branch 2 times, most recently from d0ad51f to 4c46bb3 Compare July 12, 2018 14:29
with open(os.path.join(dst, "all.yml"), "a") as all_yaml:
all_yaml.write("\ncloud_provider: openstack\n")
data_to_add = {'cloud_provider': 'openstack'}
Copy link
Contributor

Choose a reason for hiding this comment

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

imo unclear naming , maybe kubespray_configuration?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

kubespray_configuration is located at "all.yml" and we are open this file for append and in data_to_add dictionary contains everything that will be appended

@naumvd95
Copy link
Contributor

OK, LGFM, we can merge it , if it tested properly

naumvd95
naumvd95 previously approved these changes Jul 12, 2018
@@ -33,3 +33,16 @@ class Config(BaseConfig):
# Creds for Kqueen Read-only user
LDAP_DN = 'cn=admin,dc=example,dc=org'
LDAP_PASSWORD = 'heslo123'

# Images for Kubespray (available images that can be provided is listed in the link below)

Choose a reason for hiding this comment

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

*are listed

@naumvd95 naumvd95 merged commit 676429c into master Jul 13, 2018
@katyafervent katyafervent deleted the make-k8s-images-confogurable branch July 30, 2018 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants