1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00

18335 Commits

Author SHA1 Message Date
Patrick Dillon
2d340f7680 pkg/destroy/aws: log elb resource types
Adds logging to destroy logs to show elb resource types.
2025-11-24 21:51:28 -08:00
openshift-merge-bot[bot]
54f4b77a68 Merge pull request #10124 from tthvo/OCPBUGS-65938
OCPBUGS-65938: increase IAM waiter timeout and remove custom delay options
2025-11-25 00:55:37 +00:00
Thuan Vo
a92c401d65 OCPBUGS-65938: increase IAM waiter timeout and remove custom delay options
The AWS IAM role and instance profile waiters had a 2 minute timeout
with custom delay options (1-5 seconds). This timeout was insufficient
in CI environment where IAM calls can be throttled.

Increased the timeout to 15 minutes and removed the custom delay
options to use the AWS SDK defaults (min 1s and max 120s).
2025-11-24 13:19:53 -08:00
openshift-merge-bot[bot]
90b08c74a0 Merge pull request #10117 from patrickdillon/bump-aro-mkt-imgs
CORS-4249: bump ARO marketplace images
v1.4.21-pre
2025-11-22 17:50:06 +00:00
openshift-merge-bot[bot]
e81ba7f50f Merge pull request #9945 from jhixson74/main_aws_gp3_throughput
CORS-4212: AWS: Add the ability to configure throughput on GP3 volumes
2025-11-22 13:56:34 +00:00
openshift-merge-bot[bot]
5060ac90b9 Merge pull request #10114 from barbacbd/remove-gcp-endpoints-fg
no-jira: Remove the GCP Custom Endpoints Feature Gate
2025-11-22 10:23:36 +00:00
openshift-merge-bot[bot]
6661dac8b8 Merge pull request #10076 from patrickdillon/az-mkt
CORS-3657: Default Azure Installs to Marketplace Images
2025-11-22 10:23:30 +00:00
openshift-merge-bot[bot]
e22009cb97 Merge pull request #10072 from dtantsur/bmc-ca
METAL-1105: support specifying CA to verify BMC connections
2025-11-22 10:23:23 +00:00
openshift-merge-bot[bot]
64cc933207 Merge pull request #10018 from barbacbd/CORS-4259
CORS-4259, CORS-4260, CORS-4265: Move the gcp permission check to a common file in install config.
2025-11-22 06:03:30 +00:00
openshift-merge-bot[bot]
b3eccf782e Merge pull request #10112 from tthvo/CORS-4055-partial
OCPBUGS-65893: CORS-4055: configure AWS SDK v2 clients with common config
2025-11-22 01:54:32 +00:00
Thuan Vo
64cdab8cf1 crds: update infrastructure crd manifest 2025-11-21 16:23:18 -08:00
Thuan Vo
9735f52ff5 deps: cluster-api: go mod vendor 2025-11-21 16:21:05 -08:00
Thuan Vo
24e90d1e5c deps: bump capa controller go.mod to latest upstream commit 2025-11-21 16:20:41 -08:00
Thuan Vo
40f2288114 deps: top-level: go mod vendor 2025-11-21 16:20:32 -08:00
Thuan Vo
cf03fc21d7 deps: bump top-level go.mod with latest upstream capa commit
CAPA is now compatible with CAPI v1.11
2025-11-21 16:16:10 -08:00
openshift-merge-bot[bot]
386dca300b Merge pull request #9423 from jhixson74/master-OCPBUGS-42871
OCPBUGS-42871: pkg/infrastructure/network: update NumberOfProbes to ProbeThreshold
2025-11-21 22:04:14 +00:00
Patrick Dillon
8fa9860b37 pkg/types: set Azure machine pool defaults from defaultMachinePlatform
This commit updates default value handling when loading the
install config to set values in machine pools based on the
defaultMachinePlatform.

By populating the values directly in the install config, we can
avoid repetitive checks throughout the codebase to ensure the
default machine platform is applied to the relevant machine pool.
2025-11-21 15:37:52 -05:00
Patrick Dillon
6e4a27d545 azure: do not use marketplace images for confidential VMs
Marketplace images do not support confidential VMs or trusted launch,
so when machinesets use confidential VMs the installer will still
create an image gallery compatible with the security settings.
2025-11-21 15:37:52 -05:00
Patrick Dillon
0d363dc2e3 .golangci: increase cyclomatic complexity threshold
Unfortunately we have a lot of big functions in the installer, and
that is not likely to change. Therefore bumping the cyclomatic
complexity threshold so the linter starts complaining at a threshold
of 40 rather than 30.

Also remove the tenv linter as it is deprecated.
2025-11-21 15:37:51 -05:00
Patrick Dillon
be0f2093d8 pkg/infrastructure/azure: skip image creation
Now that we can use marketplace images, we only need to create
managed images for OKD or AzureStack. We can also safely remove the
environment variable that allowed skipping image upload and the
corresponding validation.
2025-11-21 14:41:15 -05:00
Patrick Dillon
a5f42476d3 pkg/asset/machines: use azure marketplace images 2025-11-21 14:41:15 -05:00
Patrick Dillon
7cf9586fae pkg/asset/rhcos: default to azure marketplace image
Defaults the Rhcos image asset to the non-paid Azure marketplace image.
Fallback to Azure disk and image creation if the marketplqace image
is not available, which is the case for OKD.
2025-11-21 13:35:25 -05:00
Patrick Dillon
65a4aa6a81 azure: refactor to cache capabilities in metadata
Refactors the installconfig metadata to store the VM capabilities
and hyperVGeneration, so that we do not need to repeatedly call the
azure API to get the same information.
2025-11-21 13:35:19 -05:00
John Hixson
2e5a20b4aa go mod vendor for AWS GP3 changes 2025-11-21 10:16:00 -08:00
John Hixson
0224f1aa69 Bump openshift/api for AWS GP3 changes 2025-11-21 10:15:59 -08:00
John Hixson
fdde8b0ece AWS: Add the ability to configure throughput on GP3 volumes
GP3 volumes have the ability to configure throughput from 125 MiB/s to
2000 MiB/s. This allows the ability to set this at install time in the
install-config.

https://issues.redhat.com/browse/CORS-4212
2025-11-21 10:15:54 -08:00
barbacbd
3833cec681 data/data/install.openshift.io_installconfigs.yaml:
pkg/types/gcp/platform.go:

Add FirewallManagementPolicy. The policy will indicate whether the cluster or user
will manage the firewall rules.

Add validation to ensure that a network is provided when the install config
is set to Unmanaged to FirewallManagement.

pkg/types/gcp/metadata.go:

Add the management policy to the metadata so that the bootstrap destroy process
knows whether to delete the bootstrap firewall rules or not.
2025-11-21 11:42:40 -05:00
openshift-merge-bot[bot]
0e43b96aec Merge pull request #10012 from fangge1212/aws_sev_snp
CORS-4188: AWS - Add support to AMD SEV-SNP confidential VMs
2025-11-21 16:22:24 +00:00
Stephen Finucane
112e876988 Bump cluster-api-provider-openstack to v0.13.0
Achieved by bumping the library itself:

  pushd cluster-api/providers/openstack
  go get -u sigs.k8s.io/cluster-api-provider-openstack@latest
  go mod tidy
  go mod vendor
  popd

Followed by the assets:

  pushd <path-to-upstream-capo-repo>
  git checkout v0.13.0
  make release-manifests
  popd
  cp <path-to-upstream-capo-repo>/out/infrastructure-components.yaml \
    data/data/cluster-api/openstack-infrastructure-components.yaml

This has the side effect of bumping golang to 1.24.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2025-11-21 14:26:25 +00:00
Stephen Finucane
a84719caef Add ORC API to local control plane
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2025-11-21 14:26:25 +00:00
Stephen Finucane
e184dc659a Add openstack-resource-controller
This is split out from CAPO starting with CAPO v0.12.0. Start deploying it manually
in preparation for a CAPO bump.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2025-11-21 14:26:24 +00:00
openshift-merge-bot[bot]
d0a57149e0 Merge pull request #10040 from zaneb/claude-docs
NO-JIRA: Add project documentation to CLAUDE.md
2025-11-21 10:14:17 +00:00
openshift-merge-bot[bot]
e8da62a4a4 Merge pull request #9773 from rna-afk/azure_multi_zonal_nat_gateway
CORS-4064, CORS-4187: Add support for multi zonal NAT gateways
2025-11-21 05:41:38 +00:00
Zane Bitter
85aac1ae08 agent: Fix agent-auth-token-status dependency for console services
The agent-interactive-console and agent-interactive-console-serial@
services should have consistent Before/After edges. Previously,
agent-auth-token-status.service had agent-interactive-console.service
in its After= directive, but there was no corresponding dependency for
the serial console variant.

This adds agent-auth-token-status.service to the Before= directive in
both console services, and removes the now-redundant After= directive
from agent-auth-token-status.service, so both services define the
dependency consistently in the same direction.

Assisted-by: Claude Code
2025-11-21 16:46:08 +13:00
Zane Bitter
5c159b050e OCPBUGS-65859: Fix set-hostname dependency for interactive console services
The agent-interactive-console and agent-interactive-console-serial@
services should have consistent Before/After edges since only one runs
on each system (depending on whether there is a graphical console).

Previously, set-hostname.service had a Before= dependency on
agent-interactive-console.service only, which created an edge in the
systemd diagrams from set-hostname to agent-interactive-console but not
to agent-interactive-console-serial@.

This fixes the inconsistency by:
- Adding set-hostname.service to the After= directive in both console
  services
- Removing the redundant Before= directive from set-hostname.service

Both services now define the dependency consistently in the same
direction.

Assisted-by: Claude Code
2025-11-21 16:26:34 +13:00
Zane Bitter
680f3904a9 integration tests: allow running in a network sandbox
The testscript framework needs environment variables explicitly passed
through to the test environment. This adds passthrough for proxy variables
(HTTP_PROXY, HTTPS_PROXY, NO_PROXY and lowercase variants) that may be set
by the sandbox or CI environment.

Without these, integration tests running behind a proxy would fail with
network DNS resolution failures when attempting to download resources.

Assisted-by: Claude Code
2025-11-21 16:05:39 +13:00
Zane Bitter
6326ea7f96 integration tests: pass XDG_CACHE_HOME to agent tests
The integration test setup was not passing through the XDG_CACHE_HOME
environment variable to the test environment, causing tests to fall
back to $HOME/.cache for caching downloaded files. This caused test
failures in environments where $HOME/.cache is not writable but
XDG_CACHE_HOME points to a writable location.

This change ensures that if XDG_CACHE_HOME is set in the test runner's
environment, it is passed through to the integration test environment,
allowing tests to respect the XDG Base Directory specification.

Assisted-by: Claude Code
2025-11-21 16:05:39 +13:00
Zane Bitter
f086e07223 unit tests: avoid vCenter connection attempts in agent tests
Remove vCenter credentials from agent installer validation tests to
prevent network connection attempts during unit tests. The tests now
validate that credential fields are required when any credential field
is specified, in addition to their original validation logic.

This change reduces test execution time from 60-180 seconds to under
1 second while maintaining test validity. The tests still verify the
same validation errors they were designed to check, plus additional
credential validation.

Also updated test domains from test.vcenter.com to vcenter.test for
consistency with RFC 2606 reserved test domains.

Assisted-by: Claude Code
2025-11-21 16:05:29 +13:00
Zane Bitter
5935ebec92 unit tests: use os.TempDir and clean up temporary files
Replace hardcoded /tmp path with os.TempDir() to respect TMPDIR
environment variable. Add defer statements to clean up temporary
files created during vSphere simulator initialization.

Assisted-by: Claude Code
2025-11-21 16:02:29 +13:00
Zane Bitter
cf3af5bc43 Add CLAUDE.md with project documentation
Add guidance for Claude Code covering build commands, testing,
architecture overview, dependency management, and commit conventions.

Assisted-by: Claude Code
2025-11-21 16:02:28 +13:00
Aditya Narayanaswamy
13b9636e77 fixing broken deep copy object. 2025-11-20 20:59:28 -05:00
Aditya Narayanaswamy
3f922cbbf1 azure: Distribute compute subnets to proper zones.
Distributing the compute subnets across NAT gateways. Depends
on nat gateway availability zones and vm zones.
2025-11-20 20:59:21 -05:00
openshift-merge-bot[bot]
8bb5744f6f Merge pull request #9959 from kenjpais/enable-secureboot-cs10
OKD-279: Enabled secureboot for cs10 testing
2025-11-21 01:29:37 +00:00
Fangge Jin
64a524bc35 aws: Add cpuOptions to install-config.yaml
This will allow configuring confidential computing on AWS platform,
only AMD SEV-SNP is supported for now.

Signed-off-by: Fangge Jin <fjin@redhat.com>
2025-11-20 20:10:52 -05:00
Fangge Jin
bf77b3a834 aws: Add support for AMD SEV-SNP VMs
Signed-off-by: Fangge Jin <fjin@redhat.com>
2025-11-20 20:10:52 -05:00
Zane Bitter
2cb75632c3 Merge branch 'main' into bmc-ca 2025-11-20 18:29:14 -05:00
openshift-merge-bot[bot]
567aa4add2 Merge pull request #10115 from shiftstack/shiftstack_owners
NO-JIRA: Update ShiftStack OWNERS
2025-11-20 21:50:50 +00:00
Aditya Narayanaswamy
059a7c9f07 added mock files and changed test files 2025-11-20 15:48:45 -05:00
Aditya Narayanaswamy
a9af27250b azure: Add support for multi zonal NAT gateways
Adding support to install multiple NAT gateways per subnet in
the specific zones they need to be in.

Also, allowing the users to bring their own subnets.

(NAT gateways on BYO subnets are not supported by CAPZ, it just
creates a dummy NAT gateway and doesn't attach it to the subnet).
2025-11-20 15:48:40 -05:00
Aditya Narayanaswamy
2211cdcf44 update the infrastructure components files 2025-11-20 15:48:33 -05:00