Skip to content

Automatically trigger a build after creation of image stream & Build config #23

@jaideepr97

Description

@jaideepr97

Depends on : #15

kodo build should automatically trigger a build after creation of image stream & Build config

Reference code blocks:

buildRequest := BuildRequest{
		"BuildRequest",
		"build.openshift.io/v1",
		struct {
			Name string `json:"name"`
		}{
			buildConfig,
		},
	}

req, err := http.NewRequest("POST", fmt.Sprintf("%s/apis/build.openshift.io/v1/namespaces/openshift-console/buildconfigs/%s/instantiate", openshiftAPIURL, buildConfig), requestBody)
	req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", token))

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions