Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions pkg/controller/observers/build/reconciler.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
Copyright 2026 The BlanketOps Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Package build re-exports the build-observer reconciler type as a public
// alias. The reconciler itself stays in internal/controller/observers/build,
// unchanged; this package exists only so that external test modules have a
// valid, non-internal import path to construct it against.
package build

import (
internalbuild "github.com/blanketops/environments-controller/internal/controller/observers/build"
)

type (
// Reconciler mirrors GitHubEvent trigger metadata onto Build annotations
// and bumps retry-attempt against the Build's retry policy.
Reconciler = internalbuild.Reconciler
)
31 changes: 31 additions & 0 deletions pkg/controller/observers/buildrun/reconciler.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
Copyright 2026 The BlanketOps Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Package buildrun re-exports the buildrun-observer reconciler type as a
// public alias. The reconciler itself stays in
// internal/controller/observers/buildrun, unchanged; this package exists
// only so that external test modules have a valid, non-internal import path
// to construct it against.
package buildrun

import (
internalbuildrun "github.com/blanketops/environments-controller/internal/controller/observers/buildrun"
)

type (
// Reconciler observes Shipwright BuildRun objects and reflects their
// terminal Succeeded condition back onto the owning Build CR's status.
Reconciler = internalbuildrun.Reconciler
)
31 changes: 31 additions & 0 deletions pkg/controller/observers/deployment/reconciler.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
Copyright 2026 The BlanketOps Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Package deployment re-exports the deployment-observer reconciler type as
// a public alias. The reconciler itself stays in
// internal/controller/observers/deployment, unchanged; this package exists
// only so that external test modules have a valid, non-internal import path
// to construct it against.
package deployment

import (
internaldeployment "github.com/blanketops/environments-controller/internal/controller/observers/deployment"
)

type (
// Reconciler observes Flux Kustomization resources and feeds their
// terminal reconciliation outcome back to the owning Deployment CR.
Reconciler = internaldeployment.Reconciler
)
31 changes: 31 additions & 0 deletions pkg/controller/observers/environment/reconciler.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
Copyright 2026 The BlanketOps Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Package environment re-exports the environment-observer reconciler type
// as a public alias. The reconciler itself stays in
// internal/controller/observers/environment, unchanged; this package
// exists only so that external test modules have a valid, non-internal
// import path to construct it against.
package environment

import (
internalenvironment "github.com/blanketops/environments-controller/internal/controller/observers/environment"
)

type (
// Reconciler fans in readiness from all composed CR types and
// aggregates them into the owning Environment's status.
Reconciler = internalenvironment.Reconciler
)
31 changes: 31 additions & 0 deletions pkg/controller/observers/githubevent/reconciler.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
Copyright 2026 The BlanketOps Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Package githubevent re-exports the githubevent-observer reconciler type
// as a public alias. The reconciler itself stays in
// internal/controller/observers/githubevent, unchanged; this package exists
// only so that external test modules have a valid, non-internal import path
// to construct it against.
package githubevent

import (
internalgithubevent "github.com/blanketops/environments-controller/internal/controller/observers/githubevent"
)

type (
// Reconciler observes GitHubEvent CRs and their Argo Events Sensor,
// deriving and writing the event's accepted/triggered/success status.
Reconciler = internalgithubevent.Reconciler
)
31 changes: 31 additions & 0 deletions pkg/controller/observers/gitrepository/reconciler.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
Copyright 2026 The BlanketOps Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Package gitrepository re-exports the gitrepository-observer reconciler
// type as a public alias. The reconciler itself stays in
// internal/controller/observers/gitrepository, unchanged; this package
// exists only so that external test modules have a valid, non-internal
// import path to construct it against.
package gitrepository

import (
internalgitrepository "github.com/blanketops/environments-controller/internal/controller/observers/gitrepository"
)

type (
// Reconciler observes the Crossplane Repository backing a GitRepository
// CR and reflects its Ready condition back onto the GitRepository status.
Reconciler = internalgitrepository.Reconciler
)
Loading