Skip to content

Commit 7b01840

Browse files
authored
Merge branch 'open-cluster-management-io:main' into chore/fix-typo
2 parents e12e244 + f31d112 commit 7b01840

File tree

19 files changed

+849
-129
lines changed

19 files changed

+849
-129
lines changed

fleetconfig-controller/api/v1beta1/constants.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ const (
162162
LabelAddOnManagedBy = "addon.open-cluster-management.io/managedBy"
163163
)
164164

165+
// FleetConfig addon annotations
166+
const (
167+
// AnnotationAddOnDeploymentConfigHash is the annotation key for storing the hash of an addon's deployment configuration.
168+
// Used to detect when the configuration changes and trigger a redeploy.
169+
AnnotationAddOnDeploymentConfigHash = "fleetconfig.open-cluster-management.io/configHash"
170+
)
171+
165172
// Registration driver types
166173
const (
167174
// CSRRegistrationDriver is the default CSR-based registration driver.

fleetconfig-controller/api/v1beta1/spoke_types.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323

2424
corev1 "k8s.io/api/core/v1"
2525
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
26+
addonv1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
2627
"open-cluster-management.io/ocm/pkg/operator/helpers/chart"
2728
)
2829

@@ -279,13 +280,14 @@ type AddOn struct {
279280
// +required
280281
ConfigName string `json:"configName"`
281282

282-
// The namespace to install the add-on in. If left empty, installs into the "open-cluster-management-addon" namespace.
283-
// +optional
284-
InstallNamespace string `json:"installNamespace,omitempty"`
285-
286283
// Annotations to apply to the add-on.
287284
// +optional
288285
Annotations map[string]string `json:"annotations,omitempty"`
286+
287+
// DeploymentConfig provides additional configuration for the add-on deployment.
288+
// If specified, this will be used to create an AddOnDeploymentConfig resource.
289+
// +optional
290+
DeploymentConfig *addonv1alpha1.AddOnDeploymentConfigSpec `json:"deploymentConfig,omitempty"`
289291
}
290292

291293
// SpokeStatus defines the observed state of Spoke.

fleetconfig-controller/api/v1beta1/zz_generated.deepcopy.go

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

fleetconfig-controller/build/Dockerfile.base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ARG ARCH
3838
RUN apk update && apk add --no-cache bash curl
3939

4040
# Install clusteradm
41-
ARG CLUSTERADM_VERSION=1.0.2
41+
ARG CLUSTERADM_VERSION=1.1.0
4242
RUN curl -L https://raw.githubusercontent.com/open-cluster-management-io/clusteradm/main/install.sh | bash -s -- ${CLUSTERADM_VERSION}
4343

4444
## Stage 3: Compress binaries with upx to reduce image size

fleetconfig-controller/build/Dockerfile.devspace

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN apk add --no-cache bash curl python3 py3-pip
1616
RUN go install github.com/go-delve/delve/cmd/dlv@latest
1717

1818
# Install clusteradm
19-
ARG CLUSTERADM_VERSION=1.0.2
19+
ARG CLUSTERADM_VERSION=1.1.0
2020
RUN curl -L https://raw.githubusercontent.com/open-cluster-management-io/clusteradm/main/install.sh | bash -s -- ${CLUSTERADM_VERSION}
2121

2222
# Install aws-iam-authenticator if building for EKS

fleetconfig-controller/build/Dockerfile.eks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ARG ARCH
3838
RUN apk update && apk add --no-cache bash curl
3939

4040
# Install clusteradm
41-
ARG CLUSTERADM_VERSION=1.0.2
41+
ARG CLUSTERADM_VERSION=1.1.0
4242
RUN curl -L https://raw.githubusercontent.com/open-cluster-management-io/clusteradm/main/install.sh | bash -s -- ${CLUSTERADM_VERSION}
4343

4444
# Install aws-iam-authenticator

fleetconfig-controller/build/Dockerfile.gke

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ARG ARCH
3737
RUN apk update && apk add --no-cache bash curl
3838

3939
# Install clusteradm
40-
ARG CLUSTERADM_VERSION=1.0.2
40+
ARG CLUSTERADM_VERSION=1.1.0
4141
RUN curl -L https://raw.githubusercontent.com/open-cluster-management-io/clusteradm/main/install.sh | bash -s -- ${CLUSTERADM_VERSION}
4242

4343
## Stage 3: Compress binaries with upx to reduce image size

fleetconfig-controller/charts/fleetconfig-controller/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Resource specifications for all klusterlet-managed containers.
158158
| `replicas` | fleetconfig-controller replica count | `1` |
159159
| `imageRegistry` | Image registry | `""` |
160160
| `image.repository` | Image repository | `quay.io/open-cluster-management/fleetconfig-controller` |
161-
| `image.tag` | Image tag | `v0.1.6` |
161+
| `image.tag` | Image tag | `v0.1.7` |
162162
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
163163
| `imagePullSecrets` | Image pull secrets | `[]` |
164164
| `serviceAccount.annotations` | Annotations to add to the service account | `{}` |

0 commit comments

Comments
 (0)