Skip to content

Commit

Permalink
Create Admin user from the operator
Browse files Browse the repository at this point in the history
- There is no password reset functionality provided by the operator.
  If the password needs to be reset, do so in the app UI or in the API
  pod by running `pulpcore-manager reset-admin-password`

Signed-off-by: Christian M. Adams <chadams@redhat.com>
  • Loading branch information
rooftopcellist committed Jan 23, 2024
1 parent 5be3710 commit bfc7040
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
3 changes: 3 additions & 0 deletions roles/pulp-api/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@
with_items:
- pulp-api

- include_tasks:
file: resource_configuration.yml

- k8s_status:
api_version: "{{ api_version }}"
kind: "{{ kind }}"
Expand Down
Empty file.
10 changes: 0 additions & 10 deletions roles/pulp-api/templates/pulp-api.deployment.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ spec:
items:
- path: settings.py
key: settings.py
- name: {{ ansible_operator_meta.name }}-admin-password
secret:
secretName: {{ admin_password_name }}
items:
- path: admin-password
key: password
- name: {{ ansible_operator_meta.name }}-db-fields-encryption
secret:
secretName: {{ db_fields_encryption_secret }}
Expand Down Expand Up @@ -196,10 +190,6 @@ spec:
mountPath: "/etc/pulp/settings.py"
subPath: settings.py
readOnly: true
- name: {{ ansible_operator_meta.name }}-admin-password
mountPath: "/etc/pulp/pulp-admin-password"
subPath: admin-password
readOnly: true
- name: {{ ansible_operator_meta.name }}-db-fields-encryption
mountPath: "/etc/pulp/keys/database_fields.symmetric.key"
subPath: database_fields.symmetric.key
Expand Down

0 comments on commit bfc7040

Please sign in to comment.