Skip to content

Commit 7b92b15

Browse files
Merge pull request #696 from openshift-bot/synchronize-upstream
OCPBUGS-77972, OCPBUGS-81452: Synchronize From Upstream Repositories
2 parents a3e5b4f + 0638d81 commit 7b92b15

File tree

141 files changed

+8016
-1818
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+8016
-1818
lines changed

.bingo/Variables.mk

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ $(CRD_REF_DOCS): $(BINGO_DIR)/crd-ref-docs.mod
4747
@echo "(re)installing $(GOBIN)/crd-ref-docs-v0.3.0"
4848
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=crd-ref-docs.mod -o=$(GOBIN)/crd-ref-docs-v0.3.0 "github.com/elastic/crd-ref-docs"
4949

50-
GOJQ := $(GOBIN)/gojq-v0.12.17
51-
$(GOJQ): $(BINGO_DIR)/gojq.mod
52-
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
53-
@echo "(re)installing $(GOBIN)/gojq-v0.12.17"
54-
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=gojq.mod -o=$(GOBIN)/gojq-v0.12.17 "github.com/itchyny/gojq/cmd/gojq"
55-
5650
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v2.8.0
5751
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
5852
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.

.bingo/gojq.mod

Lines changed: 0 additions & 5 deletions
This file was deleted.

.bingo/gojq.sum

Lines changed: 0 additions & 17 deletions
This file was deleted.

.bingo/variables.env

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ CRD_DIFF="${GOBIN}/crd-diff-v0.5.1-0.20260309184313-54162f2e3097"
1818

1919
CRD_REF_DOCS="${GOBIN}/crd-ref-docs-v0.3.0"
2020

21-
GOJQ="${GOBIN}/gojq-v0.12.17"
22-
2321
GOLANGCI_LINT="${GOBIN}/golangci-lint-v2.8.0"
2422

2523
GORELEASER="${GOBIN}/goreleaser-v2.11.2"

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ fmt: $(YAMLFMT) #EXHELP Formats code
221221
$(YAMLFMT) -gitignore_excludes testdata
222222

223223
.PHONY: update-tls-profiles
224-
update-tls-profiles: $(GOJQ) #EXHELP Update TLS profiles from the Mozilla wiki
225-
env JQ=$(GOJQ) hack/tools/update-tls-profiles.sh
224+
update-tls-profiles: #EXHELP Update TLS profiles from the Mozilla wiki
225+
hack/tools/update-tls-profiles.sh
226226

227227
.PHONY: update-registryv1-bundle-schema
228228
update-registryv1-bundle-schema: #EXHELP Update registry+v1 bundle configuration JSON schema

OWNERS_ALIASES

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ aliases:
1010
- tmshort
1111

1212
olmv1-reviewers:
13-
- anik120
1413
- ankitathomas
15-
- bentito
1614
- camilamacedo86
1715
- dtfranz
1816
- fgiudici
@@ -22,7 +20,6 @@ aliases:
2220
- OchiengEd
2321
- perdasilva
2422
- rashmigottipati
25-
- thetechnick
2623
- tmshort
2724
- trgeiger
2825
- pedjak

api/v1/clusterobjectset_types.go

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ type ClusterObjectSetPhase struct {
366366
// +required
367367
// +kubebuilder:validation:MinLength=1
368368
// +kubebuilder:validation:MaxLength=63
369-
// +kubebuilder:validation:XValidation:rule=`!format.dns1123Label().validate(self).hasValue()`,message="the value must consist of only lowercase alphanumeric characters and hyphens, and must start with an alphabetic character and end with an alphanumeric character."
369+
// +kubebuilder:validation:XValidation:rule=`!format.dns1123Label().validate(self).hasValue()`,message="the value must consist of only lowercase alphanumeric characters and hyphens, and must start and end with an alphanumeric character."
370370
Name string `json:"name"`
371371

372372
// objects is a required list of all Kubernetes objects that belong to this phase.
@@ -510,6 +510,39 @@ type ClusterObjectSetStatus struct {
510510
// +listMapKey=type
511511
// +optional
512512
Conditions []metav1.Condition `json:"conditions,omitempty"`
513+
514+
// observedPhases records the content hashes of resolved phases
515+
// at first successful reconciliation. This is used to detect if
516+
// referenced object sources were deleted and recreated with
517+
// different content. Each entry covers all fully-resolved object
518+
// manifests within a phase, making it source-agnostic.
519+
//
520+
// +kubebuilder:validation:XValidation:rule="self == oldSelf || oldSelf.size() == 0",message="observedPhases is immutable"
521+
// +kubebuilder:validation:MaxItems=20
522+
// +listType=map
523+
// +listMapKey=name
524+
// +optional
525+
ObservedPhases []ObservedPhase `json:"observedPhases,omitempty"`
526+
}
527+
528+
// ObservedPhase records the observed content digest of a resolved phase.
529+
type ObservedPhase struct {
530+
// name is the phase name matching a phase in spec.phases.
531+
//
532+
// +required
533+
// +kubebuilder:validation:MinLength=1
534+
// +kubebuilder:validation:MaxLength=63
535+
// +kubebuilder:validation:XValidation:rule=`!format.dns1123Label().validate(self).hasValue()`,message="the value must consist of only lowercase alphanumeric characters and hyphens, and must start and end with an alphanumeric character."
536+
Name string `json:"name"`
537+
538+
// digest is the digest of the phase's resolved object content
539+
// at first successful resolution, in the format "<algorithm>:<hex>".
540+
//
541+
// +required
542+
// +kubebuilder:validation:MinLength=1
543+
// +kubebuilder:validation:MaxLength=256
544+
// +kubebuilder:validation:XValidation:rule=`self.matches('^[a-z0-9]+:[a-f0-9]+$')`,message="digest must be in the format '<algorithm>:<hex>'"
545+
Digest string `json:"digest"`
513546
}
514547

515548
// +genclient

api/v1/zz_generated.deepcopy.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

applyconfigurations/api/v1/clusterobjectsetstatus.go

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

applyconfigurations/api/v1/observedphase.go

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)