Skip to content
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

feature: eliminate the need for "oc adm policy add-scc-to-user anyuid" in OCP install #203

Closed
1 task
pdettori opened this issue Feb 15, 2024 · 0 comments · Fixed by #204
Closed
1 task
Assignees

Comments

@pdettori
Copy link
Collaborator

Feature Description

Without oc adm policy add-scc-to-user anyuid -z kubeflex-controller-manager -n kubeflex-system the creation of vcluster fails:

(⎈|cp1:default)$ kflex create cp2 --type vcluster
✔ Checking for saved initial context...
✔ Switching to initial context...
✔ Creating new control plane cp2 of type vcluster ...
◐ Waiting for API server to become ready...^C
(⎈|admin:N/A)$ k get cps
NAME   SYNCED   READY   TYPE       AGE
cp1    True     True    k8s        10m
cp2    False    False   vcluster   9m22s
(⎈|admin:N/A)$ k get cps cp2 -o yaml
apiVersion: tenancy.kflex.kubestellar.org/v1alpha1
kind: ControlPlane
metadata:
  creationTimestamp: "2024-02-15T02:59:48Z"
  finalizers:
  - kflex.kubestellar.org/finalizer
  generation: 1
  name: cp2
  resourceVersion: "157045"
  uid: 96ed42db-29a1-44eb-ac3f-9f8fa149fe8b
spec:
  backend: shared
  type: vcluster
status:
  conditions:
  - lastTransitionTime: "2024-02-15T02:59:48Z"
    lastUpdateTime: "2024-02-15T02:59:48Z"
    message: ""
    reason: Unavailable
    status: "False"
    type: Ready
  - lastTransitionTime: "2024-02-15T02:59:48Z"
    lastUpdateTime: "2024-02-15T02:59:48Z"
    message: 'error initializing dir for helm setup mkdir /.config: permission denied'
    reason: ReconcileError
    status: "False"
    type: Synced
  observedGeneration: 0

Proposed Solution

Set helm library to use a temp directory to avoid the permissions issue in OCP.

Want to contribute?

  • I would like to work on this issue.

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant