-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Replace pip installation with APT for python-openshift #114
Conversation
Signed-off-by: anthr76 <[email protected]>
|
||
- name: 'install openshift kubernetes module (3/3)' | ||
apt: | ||
name: python-openshift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we use this anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do in Cilium.
k8s-cluster-installation/ansible/roles/cni/tasks/cilium.yml
Lines 24 to 54 in 0586a6f
community.kubernetes.helm_repository: | |
name: cilium | |
repo_url: "https://helm.cilium.io/" | |
- name: deploy Cilium | |
community.kubernetes.helm: | |
name: cilium | |
chart_ref: cilium/cilium | |
release_namespace: kube-system | |
chart_version: "{{ cni_cilium_helm_version }}" | |
values: "{{ lookup('template', 'values.yaml.j2') | from_yaml }}" | |
- name: patch cilium-operator for helm chart bug | |
community.kubernetes.k8s: | |
state: present | |
definition: | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: cilium-operator | |
namespace: kube-system | |
spec: | |
template: | |
spec: | |
containers: | |
- name: cilium-operator | |
image: cilium/operator-dev:{{ cni_cilium_image_version }} | |
- name: Apply kube-router manifests | |
community.kubernetes.k8s: |
Likely elsewhere if the community is in agreeance, and sees fit for other CNI deployments etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit: 0c527dc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this is purely in usage for the CNI should we keep it here or move it to the respective role?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. If we slot in CNI role we'll have to do distro based checks. The equivalent to this for Arch is also in common. In my opinion it would make sense here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to add on to this tidbit. If we were to move forward with issues like this it would make more sense to keep this in common.
Tested against Ubuntu 20.04 x86 https://gist.github.com/anthr76/7ad52523cb6778fc78057d835b1ce97d#file-gistfile0-txt-L127-L144 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with this change, will wait to let @rkage to leave any further feedback.
* Remove pip as a common package and replace it with `python-openshift` from OBS * Add OBS key before installing common packages to ensure `python-openshift` gets pulled in. * Since an AUR package exists for `python-openshift` remove pip from Arch and install from AUR. Signed-off-by: anthr76 <[email protected]>
Description
Let python-openshift be managed with APT instead of PIP. I'm maintaining a repo for various debian flavors but at the moment 20.04 is hardcoded. We'll remain to pull in from the AUR for arch linux.
Checklist
Notes
Resolves tech debt from #72