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

Do not harcode namespace #40

Merged
merged 4 commits into from Apr 22, 2020
Merged

Do not harcode namespace #40

merged 4 commits into from Apr 22, 2020

Conversation

jeanlucmongrain
Copy link
Contributor

Is there any reason why documentation use kube-system?

I rather keep different apps in separated namespaces.

@@ -15,7 +15,7 @@ webhooks:
- name: deployment.admission.stash.appscode.com
clientConfig:
service:
namespace: default
namespace: {{ .Release.Namespace }}
Copy link
Member

Choose a reason for hiding this comment

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

All changes made in this file are incorrect. The webhook server is registered as an extended apiserver and only accessed through the default/kubernetes service.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, will revert

@@ -15,7 +15,7 @@ webhooks:
- name: restic.admission.stash.appscode.com
clientConfig:
service:
namespace: default
namespace: {{ .Release.Namespace }}
Copy link
Member

Choose a reason for hiding this comment

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

All changes made in this file are incorrect. The webhook server is registered as an extended apiserver and only accessed through the default/kubernetes service.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, will revert

@@ -19,9 +19,9 @@ spec:
metadata:
labels:
{{- include "stash.labels" . | nindent 8 }}
{{- if or .Values.annotations (and .Values.criticalAddon (eq .Release.Namespace "kube-system")) }}
{{- if or .Values.annotations .Values.criticalAddon }}
Copy link
Member

Choose a reason for hiding this comment

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

critical addons were restricted to kube-system namespace until 1.17 .
kubernetes/kubernetes#60596 (comment)

So, you need to check for k8s version before relaxing this. Otherwise pods will not start in < 1.17 release.

Copy link
Member

Choose a reason for hiding this comment

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

@@ -99,7 +99,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ template "stash.fullname" . }}-apiserver-extension-server-authentication-reader
namespace: kube-system
namespace: {{ .Release.Namespace }}
Copy link
Member

Choose a reason for hiding this comment

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

This is a Role binding and can only created in the namespace of the role which is kube-system. Please revert this change.

@jeanlucmongrain
Copy link
Contributor Author

@tamalsaha PR updated

@jeanlucmongrain
Copy link
Contributor Author

I added a commit to force deployment to restart when tls.cert/tls.key are changed in the kind: Secret

@tamalsaha
Copy link
Member

Can you please squash the commits and sign-off?

Signed-off-by: Bruno Clermont <bruno@robotinfra.com>
@jeanlucmongrain
Copy link
Contributor Author

jeanlucmongrain commented Mar 11, 2020

@tamalsaha done

BTW I had been running this for 1 week now

@jeanlucmongrain
Copy link
Contributor Author

Just added a minor change that convert operator resources into a value

Signed-off-by: Bruno Clermont <bruno@robotinfra.com>
Signed-off-by: Bruno Clermont <bruno@robotinfra.com>
Signed-off-by: Bruno Clermont <bruno@robotinfra.com>
@jeanlucmongrain
Copy link
Contributor Author

BTW I had been running this for 1 week now

I just realized it wasn't that but an other fork, testing it

@jeanlucmongrain
Copy link
Contributor Author

I just realized it wasn't that but an other fork, testing it

tested

@jeanlucmongrain
Copy link
Contributor Author

something else not ok and that I should do with this PR?

@jeanlucmongrain
Copy link
Contributor Author

I had been using this in production on few clusters for > 3 weeks

@@ -7,6 +10,7 @@ metadata:
{{- include "stash.labels" . | nindent 4 }}
{{- if .Values.annotations }}
annotations:
checksum/apiregistration.yaml: {{ include (print $.Template.BasePath "/apiregistration.yaml") . | sha256sum }}
Copy link
Member

Choose a reason for hiding this comment

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

@tamalsaha tamalsaha merged commit 806aada into stashed:master Apr 22, 2020
@tamalsaha
Copy link
Member

Thanks a lot for your work on this pr, @bclermont ! I really appreciate this. And sorry for the delay to merge the pr.

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