Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
8fd4464
Consolidate api directory (#1800)
tmshort Feb 24, 2025
4ecef20
Consolidate APIs into the same directory (#1803)
tmshort Feb 24, 2025
1fd979d
Merge branch 'main' into synchronize
Feb 24, 2025
c5c26c9
UPSTREAM: <carry>: Add OpenShift specific files
dtfranz Oct 26, 2023
73ee918
UPSTREAM: <carry>: Drop commitchecker
awgreene Nov 3, 2023
012f18b
UPSTREAM: <carry>: Updating ose-olm-operator-controller-container ima…
Dec 16, 2023
d723c64
UPSTREAM: <carry>: update owners
Mar 27, 2024
904ddf8
UPSTREAM: <carry>: Add pointer to tooling README
bentito Apr 1, 2024
7c6823d
UPSTREAM: <carry>: Disable Validating Admission Policy APIs downstream
Apr 26, 2024
7105ba6
UPSTREAM: <carry>: Updating ose-olm-operator-controller-container ima…
Mar 27, 2024
233816d
UPSTREAM: <carry>: Enable Validating Admission Policy APIs downstream
Apr 30, 2024
d394ab1
UPSTREAM: <carry>: manifests: set required-scc for openshift workloads
liouk May 2, 2024
e15c46b
UPSTREAM: <carry>: Updating ose-olm-operator-controller-container ima…
May 25, 2024
8443da6
UPSTREAM: <carry>: add everettraven to approvers+reviewers
everettraven Jun 24, 2024
0a7b1d1
UPSTREAM: <carry>: add openshift kustomize overlay
everettraven Jul 9, 2024
5a127f2
UPSTREAM: <carry>: Add tmshort to approvers
tmshort Sep 11, 2024
9155e36
UPSTREAM: <carry>: Updating ose-olm-operator-controller-container ima…
Sep 18, 2024
9b68209
UPSTREAM: <carry>: Properly copy and call kustomize
tmshort Sep 23, 2024
900f3e9
UPSTREAM: <carry>: manifests: add hostPath mount for /etc/containers
joelanford Sep 20, 2024
918ee18
UPSTREAM: <carry>: Add test-e2e target for downstream Makefile to be …
dtfranz Sep 26, 2024
fd1d461
UPSTREAM: <carry>: Add downstream verify makefile target
dtfranz Sep 27, 2024
c3f1b01
UPSTREAM: <carry>: openshift: template log verbosity to be managed by…
joelanford Sep 28, 2024
1843c07
UPSTREAM: <carry>: Add global-pull-secret flag
Oct 8, 2024
d1ba78e
UPSTREAM: <carry>: Update openshift CAs to operator-controller
tmshort Oct 28, 2024
dadfec7
UPSTREAM: <carry>: Add HowTo for origin tests
tmshort Nov 1, 2024
0031460
UPSTREAM: <carry>: Add e2e registry Dockerfile
dtfranz Nov 16, 2024
eed99ba
UPSTREAM: <carry>: add nodeSelector and tolerations to operator-contr…
everettraven Nov 19, 2024
5f0780c
UPSTREAM: <carry>: namespace: use privileged PSA for audit and warn l…
joelanford Nov 22, 2024
4f0ed0e
UPSTREAM: <carry>: Enable downstream e2e
dtfranz Nov 15, 2024
c076e2d
UPSTREAM: <carry>: Remove m1kola from owners
Dec 12, 2024
e28fd40
UPSTREAM: <carry>: Updating ose-olm-operator-controller-container ima…
Dec 4, 2024
7778f87
UPSTREAM: <carry>: generate and mount service-ca server cert
joelanford Jan 6, 2025
91ce228
UPSTREAM: <carry>: Add support for proxy trustedCAs
tmshort Jan 16, 2025
5972ab7
UPSTREAM: <carry>: Fix error to build the image
tmshort Jan 20, 2025
fe1974b
UPSTREAM: <carry>: Fix make verify for mac os envs
camilamacedo86 Jan 21, 2025
ae1ffe7
UPSTREAM: <carry>: Move operator-controller openshift files to its ow…
camilamacedo86 Jan 21, 2025
3e73662
UPSTREAM: <carry>: Upgrade OCP images from 4.18 to 4.19
camilamacedo86 Jan 23, 2025
146316a
UPSTREAM: <carry>: Add Openshift's catalogd manifests
camilamacedo86 Jan 22, 2025
d5159b5
UPSTREAM: <carry>: resolve issue with pre-mature mounting of trusted …
joelanford Jan 24, 2025
db26c41
UPSTREAM: <carry>: Add /etc/docker to the operator-controller and cat…
tmshort Jan 24, 2025
11a1e69
UPSTREAM: <carry>: fixup catalogd.Dockerfile paths
joelanford Jan 24, 2025
a132924
UPSTREAM: <carry>: Resolve issue with pre-mature mounting of service …
tmshort Jan 28, 2025
df2c63e
UPSTREAM: <carry>: use projected volume for CAs to avoid subPath limi…
joelanford Jan 30, 2025
fed1b2b
UPSTREAM: <carry>: Revert "UPSTREAM: <carry>: use projected volume fo…
neisw Feb 3, 2025
23fb468
UPSTREAM: <carry>: use projected volume for CAs to avoid subPath limi…
joelanford Jan 30, 2025
e6d0809
UPSTREAM: <carry>: Remove vet from openshift verify
tmshort Feb 13, 2025
ac0af91
UPSTREAM: <carry>: Skip another upstream test
tmshort Feb 13, 2025
cb7a901
UPSTREAM: <carry>: Cleanup openshift/Makefile by removing no longer r…
camilamacedo86 Jan 29, 2025
e8e0abb
UPSTREAM: <carry>: Enable OCP metrics collection by default
azych Jan 30, 2025
4e62b7d
UPSTREAM: <drop>: go mod vendor
Feb 24, 2025
01e0498
UPSTREAM: <drop>: remove upstream GitHub configuration
Feb 24, 2025
c3b9432
UPSTREAM: <drop>: configure the commit-checker
Feb 24, 2025
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
29 changes: 14 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,20 @@ KUSTOMIZE_CATD_RBAC_DIR := config/base/catalogd/rbac
KUSTOMIZE_CATD_WEBHOOKS_DIR := config/base/catalogd/manager/webhook
KUSTOMIZE_OPCON_CRDS_DIR := config/base/operator-controller/crd/bases
KUSTOMIZE_OPCON_RBAC_DIR := config/base/operator-controller/rbac
CRD_WORKING_DIR := crd_work_dir
# Due to https://github.com/kubernetes-sigs/controller-tools/issues/837 we can't specify individual files
# So we have to generate them together and then move them into place
manifests: $(CONTROLLER_GEN) #EXHELP Generate WebhookConfiguration, ClusterRole, and CustomResourceDefinition objects.
# Generate the operator-controller manifests
rm -rf $(KUSTOMIZE_OPCON_CRDS_DIR) && $(CONTROLLER_GEN) crd paths=./api/... output:crd:artifacts:config=$(KUSTOMIZE_OPCON_CRDS_DIR)
rm -f $(KUSTOMIZE_OPCON_RBAC_DIR)/role.yaml && $(CONTROLLER_GEN) rbac:roleName=manager-role paths=./internal/operator-controller/... output:rbac:artifacts:config=$(KUSTOMIZE_OPCON_RBAC_DIR)
# Generate the catalogd manifests
rm -rf $(KUSTOMIZE_CATD_CRDS_DIR) && $(CONTROLLER_GEN) crd paths="./catalogd/api/..." output:crd:artifacts:config=$(KUSTOMIZE_CATD_CRDS_DIR)
rm -f $(KUSTOMIZE_CATD_RBAC_DIR)/role.yaml && $(CONTROLLER_GEN) rbac:roleName=manager-role paths="./internal/catalogd/..." output:rbac:artifacts:config=$(KUSTOMIZE_CATD_RBAC_DIR)
rm -f $(KUSTOMIZE_CATD_WEBHOOKS_DIR)/manifests.yaml && $(CONTROLLER_GEN) webhook paths="./internal/catalogd/..." output:webhook:artifacts:config=$(KUSTOMIZE_CATD_WEBHOOKS_DIR)
mkdir $(CRD_WORKING_DIR)
$(CONTROLLER_GEN) crd paths="./api/v1/..." output:crd:artifacts:config=$(CRD_WORKING_DIR)
mv $(CRD_WORKING_DIR)/olm.operatorframework.io_clusterextensions.yaml $(KUSTOMIZE_OPCON_CRDS_DIR)
mv $(CRD_WORKING_DIR)/olm.operatorframework.io_clustercatalogs.yaml $(KUSTOMIZE_CATD_CRDS_DIR)
rmdir $(CRD_WORKING_DIR)
# Generate the remaining operator-controller manifests
$(CONTROLLER_GEN) rbac:roleName=manager-role paths="./internal/operator-controller/..." output:rbac:artifacts:config=$(KUSTOMIZE_OPCON_RBAC_DIR)
# Generate the remaining catalogd manifests
$(CONTROLLER_GEN) rbac:roleName=manager-role paths="./internal/catalogd/..." output:rbac:artifacts:config=$(KUSTOMIZE_CATD_RBAC_DIR)
$(CONTROLLER_GEN) webhook paths="./internal/catalogd/..." output:webhook:artifacts:config=$(KUSTOMIZE_CATD_WEBHOOKS_DIR)

.PHONY: generate
generate: $(CONTROLLER_GEN) #EXHELP Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
Expand Down Expand Up @@ -353,20 +359,13 @@ quickstart: $(KUSTOMIZE) manifests #EXHELP Generate the unified installation rel

.PHONY: crd-ref-docs
OPERATOR_CONTROLLER_API_REFERENCE_FILENAME := operator-controller-api-reference.md
CATALOGD_API_REFERENCE_FILENAME := catalogd-api-reference.md
API_REFERENCE_DIR := $(ROOT_DIR)/docs/api-reference

crd-ref-docs: $(CRD_REF_DOCS) #EXHELP Generate the API Reference Documents.
rm -f $(API_REFERENCE_DIR)/$(OPERATOR_CONTROLLER_API_REFERENCE_FILENAME)
$(CRD_REF_DOCS) --source-path=$(ROOT_DIR)/api \
$(CRD_REF_DOCS) --source-path=$(ROOT_DIR)/api/ \
--config=$(API_REFERENCE_DIR)/crd-ref-docs-gen-config.yaml \
--renderer=markdown --output-path=$(API_REFERENCE_DIR)/$(OPERATOR_CONTROLLER_API_REFERENCE_FILENAME);

rm -f $(API_REFERENCE_DIR)/$(CATALOGD_API_REFERENCE_FILENAME)
$(CRD_REF_DOCS) --source-path=$(ROOT_DIR)/catalogd/api \
--config=$(API_REFERENCE_DIR)/crd-ref-docs-gen-config.yaml \
--renderer=markdown --output-path=$(API_REFERENCE_DIR)/$(CATALOGD_API_REFERENCE_FILENAME);

VENVDIR := $(abspath docs/.venv)

.PHONY: build-docs
Expand Down
4 changes: 2 additions & 2 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ operator_controller = {
'binaries': {
'./cmd/operator-controller': 'operator-controller-controller-manager',
},
'deps': ['api', 'cmd/operator-controller', 'internal', 'pkg', 'go.mod', 'go.sum'],
'deps': ['api', 'cmd/operator-controller', 'internal/operator-controller', 'internal/shared', 'go.mod', 'go.sum'],
'starting_debug_port': 30000,
}
deploy_repo('operator-controller', operator_controller, '-tags containers_image_openpgp')
Expand All @@ -17,7 +17,7 @@ catalogd = {
'binaries': {
'./catalogd/cmd/catalogd': 'catalogd-controller-manager',
},
'deps': ['catalogd/api', 'catalogd/cmd/catalogd', 'catalogd/internal', 'catalogd/pkg', 'go.mod', 'go.sum'],
'deps': ['api', 'catalogd/cmd/catalogd', 'internal/catalogd', 'internal/shared', 'go.mod', 'go.sum'],
'starting_debug_port': 20000,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,6 @@ type AvailabilityMode string
const (
SourceTypeImage SourceType = "Image"

TypeProgressing = "Progressing"
TypeServing = "Serving"

// Serving reasons
ReasonAvailable = "Available"
ReasonUnavailable = "Unavailable"
ReasonUserSpecifiedUnavailable = "UserSpecifiedUnavailable"

// Progressing reasons
ReasonSucceeded = "Succeeded"
ReasonRetrying = "Retrying"
ReasonBlocked = "Blocked"

MetadataNameLabel = "olm.operatorframework.io/metadata.name"

AvailabilityModeAvailable AvailabilityMode = "Available"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"sigs.k8s.io/yaml"
)

const crdFilePath = "../../../config/base/catalogd/crd/bases/olm.operatorframework.io_clustercatalogs.yaml"
const crdFilePath = "../../config/base/catalogd/crd/bases/olm.operatorframework.io_clustercatalogs.yaml"

func TestImageSourceCELValidationRules(t *testing.T) {
validators := fieldValidatorsFromFile(t, crdFilePath)
Expand Down
15 changes: 3 additions & 12 deletions api/v1/clusterextension_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ type SourceConfig struct {
// This field is required when sourceType is "Catalog", and forbidden otherwise.
//
// +optional
Catalog *CatalogSource `json:"catalog,omitempty"`
Catalog *CatalogFilter `json:"catalog,omitempty"`
}

// ClusterExtensionInstallConfig is a union which selects the clusterExtension installation config.
Expand All @@ -138,8 +138,8 @@ type ClusterExtensionInstallConfig struct {
Preflight *PreflightConfig `json:"preflight,omitempty"`
}

// CatalogSource defines the attributes used to identify and filter content from a catalog.
type CatalogSource struct {
// CatalogFilter defines the attributes used to identify and filter content from a catalog.
type CatalogFilter struct {
// packageName is a reference to the name of the package to be installed
// and is used to filter the content from catalogs.
//
Expand Down Expand Up @@ -391,22 +391,13 @@ type CRDUpgradeSafetyPreflightConfig struct {
}

const (
TypeInstalled = "Installed"
TypeProgressing = "Progressing"

// TypeDeprecated is a rollup condition that is present when
// any of the deprecated conditions are present.
TypeDeprecated = "Deprecated"
TypePackageDeprecated = "PackageDeprecated"
TypeChannelDeprecated = "ChannelDeprecated"
TypeBundleDeprecated = "BundleDeprecated"

ReasonSucceeded = "Succeeded"
ReasonDeprecated = "Deprecated"
ReasonFailed = "Failed"
ReasonBlocked = "Blocked"
ReasonRetrying = "Retrying"

// None will not perform CRD upgrade safety checks.
CRDUpgradeSafetyEnforcementNone CRDUpgradeSafetyEnforcement = "None"
// Strict will enforce the CRD upgrade safety check and block the upgrade if the CRD would not pass the check.
Expand Down
25 changes: 20 additions & 5 deletions catalogd/api/doc.go → api/v1/common_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2022.
Copyright 2024.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -14,9 +14,24 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

//go:generate apiregister-gen --input-dirs ./... -h ../../boilerplate.go.txt
package v1

//
// +domain=operatorframework.io
const (
TypeInstalled = "Installed"
TypeProgressing = "Progressing"
TypeServing = "Serving"

package api
// Progressing reasons
ReasonSucceeded = "Succeeded"
ReasonRetrying = "Retrying"
ReasonBlocked = "Blocked"

// Terminal reasons
ReasonDeprecated = "Deprecated"
ReasonFailed = "Failed"

// Serving reasons
ReasonAvailable = "Available"
ReasonUnavailable = "Unavailable"
ReasonUserSpecifiedUnavailable = "UserSpecifiedUnavailable"
)
Loading