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

improvement(core): always require a namespace and simplify env config #1900

Merged
merged 2 commits into from
Jun 24, 2020

Conversation

edvald
Copy link
Collaborator

@edvald edvald commented Jun 24, 2020

We now always require a namespace for all environments, and make the
default simply "default". You can override the default namespace with
environments[].defaultNamespace as before.

This reduces code branching significantly, especially in the enterprise
UI, and simplifies our configuration as well.

BREAKING CHANGE:

The default namespace in the kubernetes provider is now
<project name>-<environment namespace> (previously it was just the
project name). Users need to override this to "${project.name}" if
they would like to revert to the previous default.

@edvald edvald changed the title improvement(core): always require a namespace and simply env config improvement(core): always require a namespace and simplify env config Jun 24, 2020
@eysi09 eysi09 self-assigned this Jun 24, 2020
Copy link
Collaborator

@eysi09 eysi09 left a comment

Choose a reason for hiding this comment

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

LGTM but some tests are failing

@edvald
Copy link
Collaborator Author

edvald commented Jun 24, 2020

Yeah I see it, forgot to make a change in the K8s provider

@eysi09
Copy link
Collaborator

eysi09 commented Jun 24, 2020

@edvald, anything I can help out with. Kind of blocked on the release atm.

@edvald edvald force-pushed the namespacing-change branch from f0a7677 to 8697b9b Compare June 24, 2020 13:58
@edvald
Copy link
Collaborator Author

edvald commented Jun 24, 2020

Just updated, let's see if tests pass.

@edvald edvald force-pushed the namespacing-change branch from 32c9d2c to 3e47924 Compare June 24, 2020 14:54
We now always require a namespace for all environments, and make the
default simply "default". You can override the default namespace with
`environments[].defaultNamespace` as before.

This reduces code branching significantly, especially in the enterprise
UI, and simplifies our configuration as well.

BREAKING CHANGE:

The default namespace in the `kubernetes` provider is now
`<project name>.<environment namespace>` (previously it was just the
project name). Users need to override this to `"${project.name}"` if
they would like to revert to the previous default.
@edvald edvald force-pushed the namespacing-change branch from 3e47924 to 1f35e52 Compare June 24, 2020 15:18
@edvald edvald force-pushed the namespacing-change branch from 1f35e52 to c68ae28 Compare June 24, 2020 15:32
@eysi09 eysi09 merged commit 65d40c7 into 0.12-rebased Jun 24, 2020
@eysi09 eysi09 deleted the namespacing-change branch June 24, 2020 16:16
edvald added a commit that referenced this pull request Jun 24, 2020
…#1900)

* improvement(core): always require a namespace and simply env config

We now always require a namespace for all environments, and make the
default simply "default". You can override the default namespace with
`environments[].defaultNamespace` as before.

This reduces code branching significantly, especially in the enterprise
UI, and simplifies our configuration as well.

BREAKING CHANGE:

The default namespace in the `kubernetes` provider is now
`<project name>.<environment namespace>` (previously it was just the
project name). Users need to override this to `"${project.name}"` if
they would like to revert to the previous default.
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.

2 participants