Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Plural
platform
cluster-operator
Commits
8f066d14
Unverified
Commit
8f066d14
authored
4 years ago
by
Chunyi Lyu
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #501 from wbagdon/patch-1
Fix mnesia permissions in PV
parents
72ac2ff6
d1d7e9bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
internal/resource/statefulset.go
+1
-1
internal/resource/statefulset.go
internal/resource/statefulset_test.go
+1
-1
internal/resource/statefulset_test.go
with
2 additions
and
2 deletions
+2
-2
internal/resource/statefulset.go
+
1
-
1
View file @
8f066d14
...
...
@@ -543,7 +543,7 @@ func (builder *StatefulSetBuilder) podTemplateSpec(previousPodAnnotations map[st
"&& chmod 600 /var/lib/rabbitmq/.erlang.cookie ; "
+
"cp /tmp/rabbitmq-plugins/enabled_plugins /operator/enabled_plugins "
+
"&& chown 999:999 /operator/enabled_plugins ; "
+
"ch
grp
999 /var/lib/rabbitmq/mnesia/ ; "
+
"ch
own 999:
999 /var/lib/rabbitmq/mnesia/ ; "
+
"echo '[default]' > /var/lib/rabbitmq/.rabbitmqadmin.conf "
+
"&& sed -e 's/default_user/username/' -e 's/default_pass/password/' /tmp/default_user.conf >> /var/lib/rabbitmq/.rabbitmqadmin.conf "
+
"&& chown 999:999 /var/lib/rabbitmq/.rabbitmqadmin.conf "
+
...
...
This diff is collapsed.
Click to expand it.
internal/resource/statefulset_test.go
+
1
-
1
View file @
8f066d14
...
...
@@ -1108,7 +1108,7 @@ var _ = Describe("StatefulSet", func() {
"&& chmod 600 /var/lib/rabbitmq/.erlang.cookie ; "
+
"cp /tmp/rabbitmq-plugins/enabled_plugins /operator/enabled_plugins "
+
"&& chown 999:999 /operator/enabled_plugins ; "
+
"ch
grp
999 /var/lib/rabbitmq/mnesia/ ; "
+
"ch
own 999:
999 /var/lib/rabbitmq/mnesia/ ; "
+
"echo '[default]' > /var/lib/rabbitmq/.rabbitmqadmin.conf "
+
"&& sed -e 's/default_user/username/' -e 's/default_pass/password/' /tmp/default_user.conf >> /var/lib/rabbitmq/.rabbitmqadmin.conf "
+
"&& chown 999:999 /var/lib/rabbitmq/.rabbitmqadmin.conf "
+
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment