-
Notifications
You must be signed in to change notification settings - Fork 195
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
KCC can't acquire ownership of existing folder #147
Comments
Hi @Scorpiion. |
Hi @jcanseco, thanks for the clarification. Has there been any updates on this? I just reinstalled KCC and tried to acquire existing resources and run into this again. I think this is a problem that might not show up in smaller tests and development scenarios but that quickly can become common for production usage. It feels like a bit bad to have to comment out resources that no longer works just because I reinstalled KCC. |
@Scorpiion , one way an existing folder can be acquired today is by specifying numeric folder id in the status field. (You can obtain the numeric id of the folder by listing it using For example: apiVersion: resourcemanager.cnrm.cloud.google.com/v1beta1
kind: Folder
metadata:
annotations:
cnrm.cloud.google.com/organization-id: "[organization_id]"
cnrm.cloud.google.com/deletion-policy: abandon
name: [folder_name]
spec:
displayName: [folder_name]
status:
name: folders/[folder_numeric_id] |
Hi @Scorpiion , we just released Config Connector v1.32.0, which supports the resource acquisition for apiVersion: resourcemanager.cnrm.cloud.google.com/v1beta1
kind: Folder
metadata:
annotations:
cnrm.cloud.google.com/organization-id: "[organization_id]"
cnrm.cloud.google.com/deletion-policy: abandon
name: [folder_name_in_cluster]
spec:
resourceID: [folder_numeric_id]
displayName: [folder_display_name] Detailed documentation will be coming soon. |
Detailed documentation about the new I'm closing the bug for now. @Scorpiion please let us know if you run into any issues using this feature. |
Describe the bug
I reinstall by KCC cluster just now and during that I removed old resources in the old KCC (KCC only, not underlying GCP resources) and then I'm now "reacquiring" those resources in a new installation of KCC by running
kubectl apply -f xxx.yaml
on the files one by one. When I try to apply a KCC config for folders it does not work, I get this error:I also tried to create a new folder in the UI and then to acquire that one, but it also fails like this:
ConfigConnector Version
Run the following command to get the current ConfigConnector version
To Reproduce
Steps to reproduce the behavior:
Create new folder in the UI
YAML snippets:
The text was updated successfully, but these errors were encountered: