@@ -33,7 +33,6 @@ import (
3333 cre_jobs "github.com/smartcontractkit/chainlink/deployment/cre/jobs"
3434 cre_jobs_ops "github.com/smartcontractkit/chainlink/deployment/cre/jobs/operations"
3535 "github.com/smartcontractkit/chainlink/deployment/cre/jobs/pkg"
36- cre_jobs_seq "github.com/smartcontractkit/chainlink/deployment/cre/jobs/sequences"
3736 job_types "github.com/smartcontractkit/chainlink/deployment/cre/jobs/types"
3837 creseq "github.com/smartcontractkit/chainlink/deployment/cre/ocr3/v2/changeset/sequences"
3938 "github.com/smartcontractkit/chainlink/deployment/cre/pkg/offchain"
@@ -278,43 +277,44 @@ func createJobs(
278277 return errors .New ("could not find bootstrap node in topology, exactly one bootstrap node is required" )
279278 }
280279
281- bootInput := cre_jobs.ProposeJobSpecInput {
282- Domain : offchain .ProductLabel ,
283- Environment : cre .EnvironmentName ,
284- DONName : bootstrap .DON .Name ,
285- JobName : "vault-bootstrap-" + don .Name ,
286- ExtraLabels : map [string ]string {cre .CapabilityLabelKey : flag },
287- DONFilters : []offchain.TargetDONFilter {
288- {Key : offchain .FilterKeyDONName , Value : bootstrap .DON .Name },
289- },
290- Template : job_types .BootstrapVault ,
291- Inputs : job_types.JobSpecInput {
292- "chainSelector" : creEnv .RegistryChainSelector ,
293- "contractQualifierPrefix" : ContractQualifier ,
294- },
295- }
280+ /*
281+ bootInput := cre_jobs.ProposeJobSpecInput{
282+ Domain: offchain.ProductLabel,
283+ Environment: cre.EnvironmentName,
284+ DONName: bootstrap.DON.Name,
285+ JobName: "vault-bootstrap-" + don.Name,
286+ ExtraLabels: map[string]string{cre.CapabilityLabelKey: flag},
287+ DONFilters: []offchain.TargetDONFilter{
288+ {Key: offchain.FilterKeyDONName, Value: bootstrap.DON.Name},
289+ },
290+ Template: job_types.BootstrapVault,
291+ Inputs: job_types.JobSpecInput{
292+ "chainSelector": creEnv.RegistryChainSelector,
293+ "contractQualifierPrefix": ContractQualifier,
294+ },
295+ }
296296
297- bootVerErr := cre_jobs.ProposeJobSpec {}.VerifyPreconditions (* creEnv .CldfEnvironment , bootInput )
298- if bootVerErr != nil {
299- return fmt .Errorf ("precondition verification failed for Vault bootstrap job: %w" , bootVerErr )
300- }
297+ bootVerErr := cre_jobs.ProposeJobSpec{}.VerifyPreconditions(*creEnv.CldfEnvironment, bootInput)
298+ if bootVerErr != nil {
299+ return fmt.Errorf("precondition verification failed for Vault bootstrap job: %w", bootVerErr)
300+ }
301301
302- bootReport , bootErr := cre_jobs.ProposeJobSpec {}.Apply (* creEnv .CldfEnvironment , bootInput )
303- if bootErr != nil {
304- return fmt .Errorf ("failed to propose Vault bootstrap job spec: %w" , bootErr )
305- }
302+ bootReport, bootErr := cre_jobs.ProposeJobSpec{}.Apply(*creEnv.CldfEnvironment, bootInput)
303+ if bootErr != nil {
304+ return fmt.Errorf("failed to propose Vault bootstrap job spec: %w", bootErr)
305+ }*/
306306
307307 specs := make (map [string ][]string )
308- for _ , r := range bootReport .Reports {
309- out , ok := r .Output .(cre_jobs_seq.ProposeVaultBootstrapJobsOutput )
310- if ! ok {
311- return fmt .Errorf ("unable to cast to ProposeVaultBootstrapJobsOutput, actual type: %T" , r .Output )
312- }
313- mErr := mergo .Merge (& specs , out .Specs , mergo .WithAppendSlice )
314- if mErr != nil {
315- return fmt .Errorf ("failed to merge bootstrap job specs: %w" , mErr )
316- }
317- }
308+ /* for _, r := range bootReport.Reports {
309+ out, ok := r.Output.(cre_jobs_seq.ProposeVaultBootstrapJobsOutput)
310+ if !ok {
311+ return fmt.Errorf("unable to cast to ProposeVaultBootstrapJobsOutput, actual type: %T", r.Output)
312+ }
313+ mErr := mergo.Merge(&specs, out.Specs, mergo.WithAppendSlice)
314+ if mErr != nil {
315+ return fmt.Errorf("failed to merge bootstrap job specs: %w", mErr)
316+ }
317+ }*/
318318
319319 _ , ocrPeeringCfg , err := cre .PeeringCfgs (bootstrap )
320320 if err != nil {
0 commit comments