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

Project creation ignoring spec.resourceID #818

Open
3 tasks done
KingBain opened this issue Jun 6, 2023 · 2 comments
Open
3 tasks done

Project creation ignoring spec.resourceID #818

KingBain opened this issue Jun 6, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@KingBain
Copy link

KingBain commented Jun 6, 2023

Checklist

Bug Description

When creating new projects using KCC, This yaml fails to deploy.


apiVersion: resourcemanager.cnrm.cloud.google.com/v1beta1
kind: Project
metadata:
  name: "ph-fishsauce-project" # kpt-set: ${project-dept}-${project-vanity-name}-project
  namespace: "config-control"
  labels:
    intake-id: "phx-01h28kjpmp42v8xh59v0qvfpxa" # kpt-set: ${project-dept}${project-env}-${project-unique-id}
  annotations:
    cnrm.cloud.google.com/blueprint: 'kpt-fn'
spec:
  name: phx-fishsauce # kpt-set: ${project-dept}${project-env}-${project-vanity-name}
  resourceID: "phx-01h28kjpmp42v8xh59v0qvfpxa" # kpt-set: ${project-dept}${project-env}-${project-unique-id}
  billingAccountRef:
    external: "016B6D-6AB281-505940" # kpt-set: ${billing-id}
  folderRef:
    name: ph-fishsauce# kpt-set: ${project-dept}-${project-vanity-name}

No error messages, but KCC is constly stuck in "in progress" for reconciliation

Reading the documentation for the resource I would expect a project to be created with the projectID of phx-01h28kjpmp42v8xh59v0qvfpxa
https://cloud.google.com/config-connector/docs/reference/resource-docs/resourcemanager/project?authuser=1
image

Additional Diagnostic Information

I get 1.104.0

Kubernetes Cluster Version

kubectl version --short Flag --short has been deprecated, and will be removed in the future. The --short output will become the default. Client Version: v1.27.2 Kustomize Version: v5.0.1 Server Version: v1.24.12-gke.500 WARNING: version difference between client (1.27) and server (1.24) exceeds the supported minor version skew of +/-1

Config Connector Version

1.104.0

Config Connector Mode

namespaced mode (default)

Log Output

No response

Steps to reproduce the issue

deploy yaml to github repo KCC is watching

YAML snippets

No response

@KingBain KingBain added the bug Something isn't working label Jun 6, 2023
@KingBain KingBain changed the title Project creation ignoriing spec.resourceID Project creation ignoring spec.resourceID Jun 6, 2023
@diviner524
Copy link
Collaborator

@KingBain Could it be a permission issue? Does the associated Google Service Account have permission to create GCP project in the GCP folder?

@KingBain
Copy link
Author

I dont think its a permission issue as the yaml and service account is able to create a project, with the wrong name "ph-fishsauce-project".

It ignores the spec.resourceID value and instead derives the name from metadata.name value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants