public void Create(PipelineRun pipelineRun) { var pvc = CreatePVC(pipelineRun.Metadata.Name, pipelineRun.Metadata.Namespace); _client.CreateNamespacedPersistentVolumeClaim(pvc, pipelineRun.Metadata.Namespace); JsonSerializerSettings jss = new JsonSerializerSettings(); jss.NullValueHandling = NullValueHandling.Ignore; jss.Formatting = Formatting.Indented; jss.ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver(); var pr = JObject.Parse(JsonConvert.SerializeObject(pipelineRun, Formatting.None, jss)); _client.CreateNamespacedCustomObject(pr, "tekton.dev", "v1beta1", pipelineRun.Metadata.Namespace, "pipelineruns"); }