Skip to content

Instantly share code, notes, and snippets.

@sparkoo
Last active August 8, 2022 15:42
Show Gist options
  • Save sparkoo/6f279e438a506e93b4b773bfaa46af24 to your computer and use it in GitHub Desktop.
Save sparkoo/6f279e438a506e93b4b773bfaa46af24 to your computer and use it in GitHub Desktop.
kcp-ctrl-looping
2022-08-08T17:30:31.263+0200 INFO controller.spiaccesscheck controller/controller.go:114 before update {"reconciler group": "appstudio.redhat.com", "reconciler kind": "SPIAccessCheck", "name": "spiaccesscheck-sample", "namespace": "default", "clusterName": "root:rh-sso-15850190:spi-mvala-z7wjp", "accesscheck": {"kind":"SPIAccessCheck","apiVersion":"appstudio.redhat.com/v1beta1","metadata":{"name":"spiaccesscheck-sample","namespace":"default","uid":"624ff59c-2596-4bd2-a0d1-f0ffd02536c7","resourceVersion":"648143","generation":1,"creationTimestamp":"2022-08-08T15:30:27Z","labels":{"state.workload.kcp.dev/spi-workload":"Sync"},"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"appstudio.redhat.com/v1beta1\",\"kind\":\"SPIAccessCheck\",\"metadata\":{\"annotations\":{},\"name\":\"spiaccesscheck-sample\",\"namespace\":\"default\"},\"spec\":{\"repoUrl\":\"https://github.com/redhat-appstudio/service-provider-integration-operator\"}}\n"},"clusterName":"root:rh-sso-15850190:spi-mvala-z7wjp","managedFields":[{"manager":"kcp","operation":"Update","apiVersion":"appstudio.redhat.com/v1beta1","time":"2022-08-08T15:30:27Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:labels":{".":{},"f:state.workload.kcp.dev/spi-workload":{}}}}},{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":"appstudio.redhat.com/v1beta1","time":"2022-08-08T15:30:27Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration":{}}},"f:spec":{".":{},"f:repoUrl":{}}}},{"manager":"virtual-workspaces","operation":"Update","apiVersion":"appstudio.redhat.com/v1beta1","time":"2022-08-08T15:30:27Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:accessibility":{},"f:accessible":{},"f:repoType":{},"f:serviceProvider":{}}},"subresource":"status"}]},"spec":{"repoUrl":"https://github.com/redhat-appstudio/service-provider-integration-operator","permissions":{}},"status":{"accessible":false,"accessibility":"","repoType":"","serviceProvider":""}}}
2022-08-08T17:30:31.263+0200 INFO rest/request.go:455 Request Body: {"kind":"SPIAccessCheck","apiVersion":"appstudio.redhat.com/v1beta1","metadata":{"name":"spiaccesscheck-sample","namespace":"default","uid":"624ff59c-2596-4bd2-a0d1-f0ffd02536c7","resourceVersion":"648143","generation":1,"creationTimestamp":"2022-08-08T15:30:27Z","labels":{"state.workload.kcp.dev/spi-workload":"Sync"},"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"appstudio.redhat.com/v1beta1\",\"kind\":\"SPIAccessCheck\",\"metadata\":{\"annotations\":{},\"name\":\"spiaccesscheck-sample\",\"namespace\":\"default\"},\"spec\":{\"repoUrl\":\"https://github.com/redhat-appstudio/service-provider-integration-operator\"}}\n"},"clusterName":"root:rh-sso-15850190:spi-mvala-z7wjp","managedFields":[{"manager":"kcp","operation":"Update","apiVersion":"appstudio.redhat.com/v1beta1","time":"2022-08-08T15:30:27Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:labels":{".":{},"f:state.workload.kcp.dev/spi-workload":{}}}}},{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":"appstudio.redhat.com/v1beta1","time":"2022-08-08T15:30:27Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration":{}}},"f:spec":{".":{},"f:repoUrl":{}}}},{"manager":"virtual-workspaces","operation":"Update","apiVersion":"appstudio.redhat.com/v1beta1","time":"2022-08-08T15:30:27Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:accessibility":{},"f:accessible":{},"f:repoType":{},"f:serviceProvider":{}}},"subresource":"status"}]},"spec":{"repoUrl":"https://github.com/redhat-appstudio/service-provider-integration-operator","permissions":{}},"status":{"accessible":false,"accessibility":"","repoType":"","serviceProvider":""}}
2022-08-08T17:30:31.263+0200 INFO client/round_tripper.go:46 curl -v -XPUT -H "Accept: application/json, */*" -H "Content-Type: application/json" 'https://kcp-stable.apps.kcp-internal-1.52p3.p1.openshiftapps.com:443/services/apiexport/root:rh-sso-15850190:spi-mvala-z7wjp/spi/clusters/root:rh-sso-15850190:spi-mvala-z7wjp/apis/appstudio.redhat.com/v1beta1/namespaces/default/spiaccesschecks/spiaccesscheck-sample/status'
2022-08-08T17:30:31.663+0200 INFO client/round_tripper.go:46 HTTP Statistics: GetConnection 0 ms ServerProcessing 399 ms Duration 400 ms
2022-08-08T17:30:31.663+0200 INFO client/round_tripper.go:46 Response Headers:
2022-08-08T17:30:31.663+0200 INFO client/round_tripper.go:46 Cache-Control: no-cache, private
2022-08-08T17:30:31.664+0200 INFO client/round_tripper.go:46 Content-Type: application/json
2022-08-08T17:30:31.664+0200 INFO client/round_tripper.go:46 Date: Mon, 08 Aug 2022 15:30:31 GMT
2022-08-08T17:30:31.664+0200 INFO client/round_tripper.go:46 Content-Length: 1732
2022-08-08T17:30:31.664+0200 INFO client/round_tripper.go:46 Audit-Id: b69050d1-0b7e-40a8-bc07-28cba06023c5
2022-08-08T17:30:31.664+0200 INFO rest/request.go:1093 Response Body: {"apiVersion":"appstudio.redhat.com/v1beta1","kind":"SPIAccessCheck","metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"appstudio.redhat.com/v1beta1\",\"kind\":\"SPIAccessCheck\",\"metadata\":{\"annotations\":{},\"name\":\"spiaccesscheck-sample\",\"namespace\":\"default\"},\"spec\":{\"repoUrl\":\"https://github.com/redhat-appstudio/service-provider-integration-operator\"}}\n"},"clusterName":"root:rh-sso-15850190:spi-mvala-z7wjp","creationTimestamp":"2022-08-08T15:30:27Z","generation":1,"labels":{"state.workload.kcp.dev/spi-workload":"Sync"},"managedFields":[{"apiVersion":"appstudio.redhat.com/v1beta1","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:labels":{".":{},"f:state.workload.kcp.dev/spi-workload":{}}}},"manager":"kcp","operation":"Update","time":"2022-08-08T15:30:27Z"},{"apiVersion":"appstudio.redhat.com/v1beta1","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration":{}}},"f:spec":{".":{},"f:repoUrl":{}}},"manager":"kubectl-client-side-apply","operation":"Update","time":"2022-08-08T15:30:27Z"},{"apiVersion":"appstudio.redhat.com/v1beta1","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:accessibility":{},"f:accessible":{},"f:repoType":{},"f:serviceProvider":{}}},"manager":"virtual-workspaces","operation":"Update","subresource":"status","time":"2022-08-08T15:30:27Z"}],"name":"spiaccesscheck-sample","namespace":"default","resourceVersion":"648144","uid":"624ff59c-2596-4bd2-a0d1-f0ffd02536c7"},"spec":{"repoUrl":"https://github.com/redhat-appstudio/service-provider-integration-operator"},"status":{"accessibility":"","accessible":false,"repoType":"","serviceProvider":""}}
2022-08-08T17:30:31.664+0200 INFO controller.spiaccesscheck controller/controller.go:114 after update {"reconciler group": "appstudio.redhat.com", "reconciler kind": "SPIAccessCheck", "name": "spiaccesscheck-sample", "namespace": "default", "clusterName": "root:rh-sso-15850190:spi-mvala-z7wjp", "accesscheck": {"kind":"SPIAccessCheck","apiVersion":"appstudio.redhat.com/v1beta1","metadata":{"name":"spiaccesscheck-sample","namespace":"default","uid":"624ff59c-2596-4bd2-a0d1-f0ffd02536c7","resourceVersion":"648144","generation":1,"creationTimestamp":"2022-08-08T15:30:27Z","labels":{"state.workload.kcp.dev/spi-workload":"Sync"},"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"appstudio.redhat.com/v1beta1\",\"kind\":\"SPIAccessCheck\",\"metadata\":{\"annotations\":{},\"name\":\"spiaccesscheck-sample\",\"namespace\":\"default\"},\"spec\":{\"repoUrl\":\"https://github.com/redhat-appstudio/service-provider-integration-operator\"}}\n"},"clusterName":"root:rh-sso-15850190:spi-mvala-z7wjp","managedFields":[{"manager":"kcp","operation":"Update","apiVersion":"appstudio.redhat.com/v1beta1","time":"2022-08-08T15:30:27Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:labels":{".":{},"f:state.workload.kcp.dev/spi-workload":{}}}}},{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":"appstudio.redhat.com/v1beta1","time":"2022-08-08T15:30:27Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration":{}}},"f:spec":{".":{},"f:repoUrl":{}}}},{"manager":"virtual-workspaces","operation":"Update","apiVersion":"appstudio.redhat.com/v1beta1","time":"2022-08-08T15:30:27Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:accessibility":{},"f:accessible":{},"f:repoType":{},"f:serviceProvider":{}}},"subresource":"status"}]},"spec":{"repoUrl":"https://github.com/redhat-appstudio/service-provider-integration-operator","permissions":{}},"status":{"accessible":false,"accessibility":"","repoType":"","serviceProvider":""}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment