Browse Source

Clean up debug in check apiserver test (#1638)

* Clean up debug in check apiserver test

* Change password generation for kube_user

Special characters are not allowed in known_users.csv file
pull/1639/head
Matthew Mosesohn 7 years ago
committed by GitHub
parent
commit
f29a42721f
2 changed files with 1 additions and 3 deletions
  1. 2
      inventory/group_vars/k8s-cluster.yml
  2. 2
      tests/testcases/010_check-apiserver.yml

2
inventory/group_vars/k8s-cluster.yml

@ -40,7 +40,7 @@ kube_log_level: 2
# Users to create for basic auth in Kubernetes API via HTTP # Users to create for basic auth in Kubernetes API via HTTP
# Optionally add groups for user # Optionally add groups for user
kube_api_pwd: "{{ lookup('password', 'credentials/kube_user length=15') }}"
kube_api_pwd: "{{ lookup('password', 'credentials/kube_user length=15 chars=ascii_letters,digits') }}"
kube_users: kube_users:
kube: kube:
pass: "{{kube_api_pwd}}" pass: "{{kube_api_pwd}}"

2
tests/testcases/010_check-apiserver.yml

@ -2,8 +2,6 @@
- hosts: kube-master - hosts: kube-master
tasks: tasks:
- debug:
msg: "kube pass: {{ lookup('password', '../../credentials/kube_user length=15') }}"
- name: Check the API servers are responding - name: Check the API servers are responding
uri: uri:
url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port }}/api/v1" url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port }}/api/v1"

Loading…
Cancel
Save