Skip to content

Commit

Permalink
Merge branch 'main' into KU-1602/refresh-worker-certs
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoflorido authored Oct 25, 2024
2 parents cdb76e0 + 05b0352 commit 16d76aa
Show file tree
Hide file tree
Showing 37 changed files with 1,998 additions and 50 deletions.
1 change: 1 addition & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
- "Workload cluster scaling"
- "Workload cluster upgrade"
- "Certificate Refresh"
- "Orchestrated In place upgrades"
# TODO(ben): Remove once all tests are running stable.
fail-fast: false
steps:
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ GINKGO_NODES ?= 1 # GINKGO_NODES is the number of parallel nodes to run
GINKGO_TIMEOUT ?= 2h
GINKGO_POLL_PROGRESS_AFTER ?= 60m
GINKGO_POLL_PROGRESS_INTERVAL ?= 5m
E2E_CONF_FILE ?= $(TEST_DIR)/e2e/config/ck8s-docker.yaml
E2E_INFRA ?= docker
E2E_CONF_FILE ?= $(TEST_DIR)/e2e/config/ck8s-$(E2E_INFRA).yaml
SKIP_RESOURCE_CLEANUP ?= false
USE_EXISTING_CLUSTER ?= false
GINKGO_NOCOLOR ?= false
Expand Down
12 changes: 12 additions & 0 deletions bootstrap/api/v1beta2/ck8sconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ type CK8sConfigSpec struct {
// +optional
SnapstoreProxyID string `json:"snapstoreProxyId,omitempty"`

// HTTPSProxy is optional https proxy configuration
// +optional
HTTPSProxy string `json:"httpsProxy,omitempty"`

// HTTPProxy is optional http proxy configuration
// +optional
HTTPProxy string `json:"httpProxy,omitempty"`

// NoProxy is optional no proxy configuration
// +optional
NoProxy string `json:"noProxy,omitempty"`

// Channel is the channel to use for the snap install.
// +optional
Channel string `json:"channel,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ spec:
- path
type: object
type: array
httpProxy:
description: HTTPProxy is optional http proxy configuration
type: string
httpsProxy:
description: HTTPSProxy is optional https proxy configuration
type: string
initConfig:
description: CK8sInitConfig is configuration for the initializing
the cluster features.
Expand Down Expand Up @@ -233,6 +239,9 @@ spec:
LocalPath is the path of a local snap file in the workload cluster to use for the snap install.
If Channel or Revision are set, this will be ignored.
type: string
noProxy:
description: NoProxy is optional no proxy configuration
type: string
nodeName:
description: |-
NodeName is the name to use for the kubelet of this node. It is needed for clouds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ spec:
- path
type: object
type: array
httpProxy:
description: HTTPProxy is optional http proxy configuration
type: string
httpsProxy:
description: HTTPSProxy is optional https proxy configuration
type: string
initConfig:
description: CK8sInitConfig is configuration for the initializing
the cluster features.
Expand Down Expand Up @@ -242,6 +248,9 @@ spec:
LocalPath is the path of a local snap file in the workload cluster to use for the snap install.
If Channel or Revision are set, this will be ignored.
type: string
noProxy:
description: NoProxy is optional no proxy configuration
type: string
nodeName:
description: |-
NodeName is the name to use for the kubelet of this node. It is needed for clouds
Expand Down
6 changes: 6 additions & 0 deletions bootstrap/controllers/ck8sconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,9 @@ func (r *CK8sConfigReconciler) joinWorker(ctx context.Context, scope *Scope) err
ConfigFileContents: string(joinConfig),
MicroclusterAddress: scope.Config.Spec.ControlPlaneConfig.MicroclusterAddress,
MicroclusterPort: microclusterPort,
HTTPProxy: scope.Config.Spec.HTTPProxy,
HTTPSProxy: scope.Config.Spec.HTTPSProxy,
NoProxy: scope.Config.Spec.NoProxy,
AirGapped: scope.Config.Spec.AirGapped,
SnapstoreProxyScheme: scope.Config.Spec.SnapstoreProxyScheme,
SnapstoreProxyDomain: scope.Config.Spec.SnapstoreProxyDomain,
Expand Down Expand Up @@ -693,6 +696,9 @@ func (r *CK8sConfigReconciler) handleClusterNotInitialized(ctx context.Context,
MicroclusterAddress: scope.Config.Spec.ControlPlaneConfig.MicroclusterAddress,
MicroclusterPort: microclusterPort,
NodeName: scope.Config.Spec.NodeName,
HTTPProxy: scope.Config.Spec.HTTPProxy,
HTTPSProxy: scope.Config.Spec.HTTPSProxy,
NoProxy: scope.Config.Spec.NoProxy,
AirGapped: scope.Config.Spec.AirGapped,
SnapstoreProxyScheme: scope.Config.Spec.SnapstoreProxyScheme,
SnapstoreProxyDomain: scope.Config.Spec.SnapstoreProxyDomain,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,12 @@ spec:
- path
type: object
type: array
httpProxy:
description: HTTPProxy is optional http proxy configuration
type: string
httpsProxy:
description: HTTPSProxy is optional https proxy configuration
type: string
initConfig:
description: CK8sInitConfig is configuration for the initializing
the cluster features.
Expand Down Expand Up @@ -430,6 +436,9 @@ spec:
LocalPath is the path of a local snap file in the workload cluster to use for the snap install.
If Channel or Revision are set, this will be ignored.
type: string
noProxy:
description: NoProxy is optional no proxy configuration
type: string
nodeName:
description: |-
NodeName is the name to use for the kubelet of this node. It is needed for clouds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,12 @@ spec:
- path
type: object
type: array
httpProxy:
description: HTTPProxy is optional http proxy configuration
type: string
httpsProxy:
description: HTTPSProxy is optional https proxy configuration
type: string
initConfig:
description: CK8sInitConfig is configuration for the initializing
the cluster features.
Expand Down Expand Up @@ -408,6 +414,9 @@ spec:
LocalPath is the path of a local snap file in the workload cluster to use for the snap install.
If Channel or Revision are set, this will be ignored.
type: string
noProxy:
description: NoProxy is optional no proxy configuration
type: string
nodeName:
description: |-
NodeName is the name to use for the kubelet of this node. It is needed for clouds
Expand Down
19 changes: 19 additions & 0 deletions controlplane/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,25 @@ rules:
- patch
- update
- watch
- apiGroups:
- cluster.x-k8s.io
resources:
- machinesets
- machinesets/status
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- delete
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down
Loading

0 comments on commit 16d76aa

Please sign in to comment.