Skip to content

Commit

Permalink
23.1.1+1.28.5 (#60)
Browse files Browse the repository at this point in the history
* fix role names in .github/workflows/release.yml

* fix typo in README

* clusterRoleBinding system:kube-apiserver needs to honor k8s_apiserver_csr_cn value for as username
  • Loading branch information
githubixx committed Jan 12, 2024
1 parent 0f4f372 commit 531427a
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

defaults:
run:
working-directory: 'githubixx.kubernetes-controller'
working-directory: 'githubixx.kubernetes_controller'

jobs:
release:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Check out the codebase.
uses: actions/checkout@v2
with:
path: 'githubixx.kubernetes-controller'
path: 'githubixx.kubernetes_controller'

- name: Set up Python 3.
uses: actions/setup-python@v2
Expand Down
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 23.1.1+1.28.5

### BUGFIX

- ClusterRoleBinding `system:kube-apiserver` needs to honor `k8s_apiserver_csr_cn` value for as username
- Because of the previous change move `files/kube-apiserver-to-kubelet_cluster_role.yaml -> templates/rbac/kube-apiserver-to-kubelet_cluster_role.yaml.j2` and `files/kube-apiserver-to-kubelet_cluster_role_binding.yaml -> templates/rbac/kube-apiserver-to-kubelet_cluster_role_binding.yaml.j2` as both files became a Jinja2 template.

## 23.1.0+1.28.5

### MOLECULE
Expand All @@ -9,14 +16,14 @@

### OTHER CHANGES

- fix permissions for temporary directory
- adjust Github action because of Ansible Galaxy changes
- Fix permissions for temporary directory
- Adjust Github action because of Ansible Galaxy changes

## 23.0.0+1.28.5

### UPDATE

- update `k8s_release` to `1.28.5`
- Update `k8s_release` to `1.28.5`

### BREAKING

Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ See full [CHANGELOG.md](https://github.com/githubixx/ansible-role-kubernetes-con

**Recent changes:**

## 23.1.1+1.28.5

### BUGFIX

- ClusterRoleBinding `system:kube-apiserver` needs to honor `k8s_apiserver_csr_cn` value for as username
- Because of the previous change move `files/kube-apiserver-to-kubelet_cluster_role.yaml -> templates/rbac/kube-apiserver-to-kubelet_cluster_role.yaml.j2` and `files/kube-apiserver-to-kubelet_cluster_role_binding.yaml -> templates/rbac/kube-apiserver-to-kubelet_cluster_role_binding.yaml.j2` as both files became a Jinja2 template.

## 23.1.0+1.28.5

### MOLECULE
Expand Down Expand Up @@ -149,7 +156,7 @@ er on the Ansible controller host. Previously it was needed to prepare these fil

## Installation

- Directly download from Github (Change into Ansible role directory before cloning. You can figure out the role path by using `ansible-config dump | grep DEFAULT_ROLES_PATH` command):
- Directly download from Github (Change into Ansible roles directory before cloning. You can figure out the role path by using `ansible-config dump | grep DEFAULT_ROLES_PATH` command):
`git clone https://github.com/githubixx/ansible-role-kubernetes-controller.git githubixx.kubernetes_controller`

- Via `ansible-galaxy` command and download directly from Ansible Galaxy:
Expand Down
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,17 +314,17 @@
changed_when: false

- name: Copy kube-apiserver-to-kubelet ClusterRole
ansible.builtin.copy:
src: "files/kube-apiserver-to-kubelet_cluster_role.yaml"
ansible.builtin.template:
src: "rbac/kube-apiserver-to-kubelet_cluster_role.yaml.j2"
dest: "{{ k8s_ctl__tmp_dir.path }}/kube-apiserver-to-kubelet_cluster_role.yaml"
mode: 0644
run_once: true
delegate_to: "{{ k8s_ctl_delegate_to }}"
changed_when: false

- name: Copy kube-apiserver-to-kubelet ClusterRoleBinding
ansible.builtin.copy:
src: "files/kube-apiserver-to-kubelet_cluster_role_binding.yaml"
ansible.builtin.template:
src: "rbac/kube-apiserver-to-kubelet_cluster_role_binding.yaml.j2"
dest: "{{ k8s_ctl__tmp_dir.path }}/kube-apiserver-to-kubelet_cluster_role_binding.yaml"
mode: 0644
run_once: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ roleRef:
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: User
name: kubernetes
name: {{ k8s_apiserver_csr_cn }}

0 comments on commit 531427a

Please sign in to comment.